Random Color Generator

#1d057f Color

Color Codes
Hex Code #1d057f
RGB Code rgb(29, 05, 127)
HSL Code hsl(252, 92%, 26%)

#1d057f Color Syntax

rgb()

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

 main {
    background-color: rgb(29, 05, 127);
   }

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(252, 92%, 26%);
  }

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

RGB Code Hex Code Preview
rgb(29, 05, 127, 10%) #1d057f1a  
rgb(29, 05, 127, 20%) #1d057f33  
rgb(29, 05, 127, 40%) #1d057f4C  
rgb(29, 05, 127, 60%) #1d057f99  
rgb(29, 05, 127, 80%) #1d057fCC  
rgb(29, 05, 127, 100%) #1d057fFF  

Saturated and desaturated colors of #1d057f

HSL Code Preview
hsl(252, 10%, 26%)  
hsl(252, 20%, 26%)  
hsl(252, 40%, 26%)  
hsl(252, 60%, 26%)  
hsl(252, 80%, 26%)  
hsl(252, 100%, 26%)  

#1d057f Color Usage In CSS

 body {
    color: #1d057f;
    }
 p {
    color: rgb(29, 05, 127);
    }
 header {
    border-bottom:1px solid #1d057f;
    }
Recent Random Colors