Random Color Generator

#252d77 Color

Color Codes
Hex Code #252d77
RGB Code rgb(37, 45, 119)
HSL Code hsl(234, 53%, 31%)

#252d77 Color Syntax

rgb()

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

 main {
    background-color: rgb(37, 45, 119);
   }

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(234, 53%, 31%);
  }

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

RGB Code Hex Code Preview
rgb(37, 45, 119, 10%) #252d771a  
rgb(37, 45, 119, 20%) #252d7733  
rgb(37, 45, 119, 40%) #252d774C  
rgb(37, 45, 119, 60%) #252d7799  
rgb(37, 45, 119, 80%) #252d77CC  
rgb(37, 45, 119, 100%) #252d77FF  

Saturated and desaturated colors of #252d77

HSL Code Preview
hsl(234, 10%, 31%)  
hsl(234, 20%, 31%)  
hsl(234, 40%, 31%)  
hsl(234, 60%, 31%)  
hsl(234, 80%, 31%)  
hsl(234, 100%, 31%)  

#252d77 Color Usage In CSS

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