Random Color Generator

#1d42cf Color

Color Codes
Hex Code #1d42cf
RGB Code rgb(29, 66, 207)
HSL Code hsl(228, 75%, 46%)

#1d42cf Color Syntax

rgb()

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

 main {
    background-color: rgb(29, 66, 207);
   }

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(228, 75%, 46%);
  }

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 #1d42cf

RGB Code Hex Code Preview
rgb(29, 66, 207, 10%) #1d42cf1a  
rgb(29, 66, 207, 20%) #1d42cf33  
rgb(29, 66, 207, 40%) #1d42cf4C  
rgb(29, 66, 207, 60%) #1d42cf99  
rgb(29, 66, 207, 80%) #1d42cfCC  
rgb(29, 66, 207, 100%) #1d42cfFF  

Saturated and desaturated colors of #1d42cf

HSL Code Preview
hsl(228, 10%, 46%)  
hsl(228, 20%, 46%)  
hsl(228, 40%, 46%)  
hsl(228, 60%, 46%)  
hsl(228, 80%, 46%)  
hsl(228, 100%, 46%)  

#1d42cf Color Usage In CSS

 body {
    color: #1d42cf;
    }
 p {
    color: rgb(29, 66, 207);
    }
 header {
    border-bottom:1px solid #1d42cf;
    }
Recent Random Colors