Random Color Generator

#151828 Color

Color Codes
Hex Code #151828
RGB Code rgb(21, 24, 40)
HSL Code hsl(231, 31%, 12%)

#151828 Color Syntax

rgb()

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

 main {
    background-color: rgb(21, 24, 40);
   }

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(231, 31%, 12%);
  }

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

RGB Code Hex Code Preview
rgb(21, 24, 40, 10%) #1518281a  
rgb(21, 24, 40, 20%) #15182833  
rgb(21, 24, 40, 40%) #1518284C  
rgb(21, 24, 40, 60%) #15182899  
rgb(21, 24, 40, 80%) #151828CC  
rgb(21, 24, 40, 100%) #151828FF  

Saturated and desaturated colors of #151828

HSL Code Preview
hsl(231, 10%, 12%)  
hsl(231, 20%, 12%)  
hsl(231, 40%, 12%)  
hsl(231, 60%, 12%)  
hsl(231, 80%, 12%)  
hsl(231, 100%, 12%)  

#151828 Color Usage In CSS

 body {
    color: #151828;
    }
 p {
    color: rgb(21, 24, 40);
    }
 header {
    border-bottom:1px solid #151828;
    }
Recent Random Colors