Random Color Generator

#052ea6 Color

Color Codes
Hex Code #052ea6
RGB Code rgb(05, 46, 166)
HSL Code hsl(225, 94%, 34%)

#052ea6 Color Syntax

rgb()

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

 main {
    background-color: rgb(05, 46, 166);
   }

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(225, 94%, 34%);
  }

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 #052ea6

RGB Code Hex Code Preview
rgb(05, 46, 166, 10%) #052ea61a  
rgb(05, 46, 166, 20%) #052ea633  
rgb(05, 46, 166, 40%) #052ea64C  
rgb(05, 46, 166, 60%) #052ea699  
rgb(05, 46, 166, 80%) #052ea6CC  
rgb(05, 46, 166, 100%) #052ea6FF  

Saturated and desaturated colors of #052ea6

HSL Code Preview
hsl(225, 10%, 34%)  
hsl(225, 20%, 34%)  
hsl(225, 40%, 34%)  
hsl(225, 60%, 34%)  
hsl(225, 80%, 34%)  
hsl(225, 100%, 34%)  

#052ea6 Color Usage In CSS

 body {
    color: #052ea6;
    }
 p {
    color: rgb(05, 46, 166);
    }
 header {
    border-bottom:1px solid #052ea6;
    }
Recent Random Colors