Random Color Generator

#1542c3 Color

Color Codes
Hex Code #1542c3
RGB Code rgb(21, 66, 195)
HSL Code hsl(224, 81%, 42%)

#1542c3 Color Syntax

rgb()

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

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

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(224, 81%, 42%);
  }

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 #1542c3

RGB Code Hex Code Preview
rgb(21, 66, 195, 10%) #1542c31a  
rgb(21, 66, 195, 20%) #1542c333  
rgb(21, 66, 195, 40%) #1542c34C  
rgb(21, 66, 195, 60%) #1542c399  
rgb(21, 66, 195, 80%) #1542c3CC  
rgb(21, 66, 195, 100%) #1542c3FF  

Saturated and desaturated colors of #1542c3

HSL Code Preview
hsl(224, 10%, 42%)  
hsl(224, 20%, 42%)  
hsl(224, 40%, 42%)  
hsl(224, 60%, 42%)  
hsl(224, 80%, 42%)  
hsl(224, 100%, 42%)  

#1542c3 Color Usage In CSS

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