Random Color Generator

#0c104c Color

Color Codes
Hex Code #0c104c
RGB Code rgb(12, 16, 76)
HSL Code hsl(236, 73%, 17%)

#0c104c Color Syntax

rgb()

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

 main {
    background-color: rgb(12, 16, 76);
   }

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(236, 73%, 17%);
  }

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

RGB Code Hex Code Preview
rgb(12, 16, 76, 10%) #0c104c1a  
rgb(12, 16, 76, 20%) #0c104c33  
rgb(12, 16, 76, 40%) #0c104c4C  
rgb(12, 16, 76, 60%) #0c104c99  
rgb(12, 16, 76, 80%) #0c104cCC  
rgb(12, 16, 76, 100%) #0c104cFF  

Saturated and desaturated colors of #0c104c

HSL Code Preview
hsl(236, 10%, 17%)  
hsl(236, 20%, 17%)  
hsl(236, 40%, 17%)  
hsl(236, 60%, 17%)  
hsl(236, 80%, 17%)  
hsl(236, 100%, 17%)  

#0c104c Color Usage In CSS

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