Random Color Generator

#0c0a51 Color

Color Codes
Hex Code #0c0a51
RGB Code rgb(12, 10, 81)
HSL Code hsl(242, 78%, 18%)

#0c0a51 Color Syntax

rgb()

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

 main {
    background-color: rgb(12, 10, 81);
   }

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(242, 78%, 18%);
  }

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

RGB Code Hex Code Preview
rgb(12, 10, 81, 10%) #0c0a511a  
rgb(12, 10, 81, 20%) #0c0a5133  
rgb(12, 10, 81, 40%) #0c0a514C  
rgb(12, 10, 81, 60%) #0c0a5199  
rgb(12, 10, 81, 80%) #0c0a51CC  
rgb(12, 10, 81, 100%) #0c0a51FF  

Saturated and desaturated colors of #0c0a51

HSL Code Preview
hsl(242, 10%, 18%)  
hsl(242, 20%, 18%)  
hsl(242, 40%, 18%)  
hsl(242, 60%, 18%)  
hsl(242, 80%, 18%)  
hsl(242, 100%, 18%)  

#0c0a51 Color Usage In CSS

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