Random Color Generator

#282251 Color

Color Codes
Hex Code #282251
RGB Code rgb(40, 34, 81)
HSL Code hsl(248, 41%, 23%)

#282251 Color Syntax

rgb()

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

 main {
    background-color: rgb(40, 34, 81);
   }

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(248, 41%, 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 #282251

RGB Code Hex Code Preview
rgb(40, 34, 81, 10%) #2822511a  
rgb(40, 34, 81, 20%) #28225133  
rgb(40, 34, 81, 40%) #2822514C  
rgb(40, 34, 81, 60%) #28225199  
rgb(40, 34, 81, 80%) #282251CC  
rgb(40, 34, 81, 100%) #282251FF  

Saturated and desaturated colors of #282251

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

#282251 Color Usage In CSS

 body {
    color: #282251;
    }
 p {
    color: rgb(40, 34, 81);
    }
 header {
    border-bottom:1px solid #282251;
    }
Recent Random Colors