Random Color Generator

#021052 Color

Color Codes
Hex Code #021052
RGB Code rgb(02, 16, 82)
HSL Code hsl(230, 95%, 16%)

#021052 Color Syntax

rgb()

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

 main {
    background-color: rgb(02, 16, 82);
   }

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(230, 95%, 16%);
  }

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

RGB Code Hex Code Preview
rgb(02, 16, 82, 10%) #0210521a  
rgb(02, 16, 82, 20%) #02105233  
rgb(02, 16, 82, 40%) #0210524C  
rgb(02, 16, 82, 60%) #02105299  
rgb(02, 16, 82, 80%) #021052CC  
rgb(02, 16, 82, 100%) #021052FF  

Saturated and desaturated colors of #021052

HSL Code Preview
hsl(230, 10%, 16%)  
hsl(230, 20%, 16%)  
hsl(230, 40%, 16%)  
hsl(230, 60%, 16%)  
hsl(230, 80%, 16%)  
hsl(230, 100%, 16%)  

#021052 Color Usage In CSS

 body {
    color: #021052;
    }
 p {
    color: rgb(02, 16, 82);
    }
 header {
    border-bottom:1px solid #021052;
    }
Recent Random Colors