Random Color Generator

#3156ce Color

Color Codes
Hex Code #3156ce
RGB Code rgb(49, 86, 206)
HSL Code hsl(226, 62%, 50%)

#3156ce Color Syntax

rgb()

 rgb(Red, Green, Blue);
 rgba(Red, Green, Blue, Alpha);

 main {
    background-color: rgb(49, 86, 206);
   }

R(red), G(green), B(blue) can be number between 0-255.
A parameter is a hex characters (0–9, A–F) and optional.

hsl()

 hsl(hue saturation lightness);
 hsl(hue saturation lightness / alpha);

 div {
  background-color: hsl(226, 62%, 50%);
  }

Saturation value is a percentage value between 0% unsaturated and 100% fully saturated.
Lightness value is a percentage value between 100% is white and 0% is black.

Lighter and darker colors of #3156ce

RGB Code Hex Code Preview
rgb(49, 86, 206, 10%) #3156ce1a  
rgb(49, 86, 206, 20%) #3156ce33  
rgb(49, 86, 206, 40%) #3156ce4C  
rgb(49, 86, 206, 60%) #3156ce99  
rgb(49, 86, 206, 80%) #3156ceCC  
rgb(49, 86, 206, 100%) #3156ceFF  

Saturated and desaturated colors of #3156ce

HSL Code Preview
hsl(226, 10%, 50%)  
hsl(226, 20%, 50%)  
hsl(226, 40%, 50%)  
hsl(226, 60%, 50%)  
hsl(226, 80%, 50%)  
hsl(226, 100%, 50%)  

#3156ce Color Usage In CSS

 body {
    color: #3156ce;
    }
 p {
    color: rgb(49, 86, 206);
    }
 header {
    border-bottom:1px solid #3156ce;
    }
Recent Random Colors