Random Color Generator

#151cba Color

Color Codes
Hex Code #151cba
RGB Code rgb(21, 28, 186)
HSL Code hsl(237, 80%, 41%)

#151cba Color Syntax

rgb()

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

 main {
    background-color: rgb(21, 28, 186);
   }

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(237, 80%, 41%);
  }

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 #151cba

RGB Code Hex Code Preview
rgb(21, 28, 186, 10%) #151cba1a  
rgb(21, 28, 186, 20%) #151cba33  
rgb(21, 28, 186, 40%) #151cba4C  
rgb(21, 28, 186, 60%) #151cba99  
rgb(21, 28, 186, 80%) #151cbaCC  
rgb(21, 28, 186, 100%) #151cbaFF  

Saturated and desaturated colors of #151cba

HSL Code Preview
hsl(237, 10%, 41%)  
hsl(237, 20%, 41%)  
hsl(237, 40%, 41%)  
hsl(237, 60%, 41%)  
hsl(237, 80%, 41%)  
hsl(237, 100%, 41%)  

#151cba Color Usage In CSS

 body {
    color: #151cba;
    }
 p {
    color: rgb(21, 28, 186);
    }
 header {
    border-bottom:1px solid #151cba;
    }
Recent Random Colors