Random Color Generator

#0a2a58 Color

Color Codes
Hex Code #0a2a58
RGB Code rgb(10, 42, 88)
HSL Code hsl(215, 80%, 19%)

#0a2a58 Color Syntax

rgb()

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

 main {
    background-color: rgb(10, 42, 88);
   }

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(215, 80%, 19%);
  }

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 #0a2a58

RGB Code Hex Code Preview
rgb(10, 42, 88, 10%) #0a2a581a  
rgb(10, 42, 88, 20%) #0a2a5833  
rgb(10, 42, 88, 40%) #0a2a584C  
rgb(10, 42, 88, 60%) #0a2a5899  
rgb(10, 42, 88, 80%) #0a2a58CC  
rgb(10, 42, 88, 100%) #0a2a58FF  

Saturated and desaturated colors of #0a2a58

HSL Code Preview
hsl(215, 10%, 19%)  
hsl(215, 20%, 19%)  
hsl(215, 40%, 19%)  
hsl(215, 60%, 19%)  
hsl(215, 80%, 19%)  
hsl(215, 100%, 19%)  

#0a2a58 Color Usage In CSS

 body {
    color: #0a2a58;
    }
 p {
    color: rgb(10, 42, 88);
    }
 header {
    border-bottom:1px solid #0a2a58;
    }
Recent Random Colors