Random Color Generator

#151a5f Color

Color Codes
Hex Code #151a5f
RGB Code rgb(21, 26, 95)
HSL Code hsl(236, 64%, 23%)

#151a5f Color Syntax

rgb()

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

 main {
    background-color: rgb(21, 26, 95);
   }

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(236, 64%, 23%);
  }

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

RGB Code Hex Code Preview
rgb(21, 26, 95, 10%) #151a5f1a  
rgb(21, 26, 95, 20%) #151a5f33  
rgb(21, 26, 95, 40%) #151a5f4C  
rgb(21, 26, 95, 60%) #151a5f99  
rgb(21, 26, 95, 80%) #151a5fCC  
rgb(21, 26, 95, 100%) #151a5fFF  

Saturated and desaturated colors of #151a5f

HSL Code Preview
hsl(236, 10%, 23%)  
hsl(236, 20%, 23%)  
hsl(236, 40%, 23%)  
hsl(236, 60%, 23%)  
hsl(236, 80%, 23%)  
hsl(236, 100%, 23%)  

#151a5f Color Usage In CSS

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