Random Color Generator

#252e53 Color

Color Codes
Hex Code #252e53
RGB Code rgb(37, 46, 83)
HSL Code hsl(228, 38%, 24%)

#252e53 Color Syntax

rgb()

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

 main {
    background-color: rgb(37, 46, 83);
   }

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(228, 38%, 24%);
  }

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 #252e53

RGB Code Hex Code Preview
rgb(37, 46, 83, 10%) #252e531a  
rgb(37, 46, 83, 20%) #252e5333  
rgb(37, 46, 83, 40%) #252e534C  
rgb(37, 46, 83, 60%) #252e5399  
rgb(37, 46, 83, 80%) #252e53CC  
rgb(37, 46, 83, 100%) #252e53FF  

Saturated and desaturated colors of #252e53

HSL Code Preview
hsl(228, 10%, 24%)  
hsl(228, 20%, 24%)  
hsl(228, 40%, 24%)  
hsl(228, 60%, 24%)  
hsl(228, 80%, 24%)  
hsl(228, 100%, 24%)  

#252e53 Color Usage In CSS

 body {
    color: #252e53;
    }
 p {
    color: rgb(37, 46, 83);
    }
 header {
    border-bottom:1px solid #252e53;
    }
Recent Random Colors