Random Color Generator

#061542 Color

Color Codes
Hex Code #061542
RGB Code rgb(06, 21, 66)
HSL Code hsl(225, 83%, 14%)

#061542 Color Syntax

rgb()

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

 main {
    background-color: rgb(06, 21, 66);
   }

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(225, 83%, 14%);
  }

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 #061542

RGB Code Hex Code Preview
rgb(06, 21, 66, 10%) #0615421a  
rgb(06, 21, 66, 20%) #06154233  
rgb(06, 21, 66, 40%) #0615424C  
rgb(06, 21, 66, 60%) #06154299  
rgb(06, 21, 66, 80%) #061542CC  
rgb(06, 21, 66, 100%) #061542FF  

Saturated and desaturated colors of #061542

HSL Code Preview
hsl(225, 10%, 14%)  
hsl(225, 20%, 14%)  
hsl(225, 40%, 14%)  
hsl(225, 60%, 14%)  
hsl(225, 80%, 14%)  
hsl(225, 100%, 14%)  

#061542 Color Usage In CSS

 body {
    color: #061542;
    }
 p {
    color: rgb(06, 21, 66);
    }
 header {
    border-bottom:1px solid #061542;
    }
Recent Random Colors