Random Color Generator

#0c1028 Color

Color Codes
Hex Code #0c1028
RGB Code rgb(12, 16, 40)
HSL Code hsl(231, 54%, 10%)

#0c1028 Color Syntax

rgb()

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

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

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(231, 54%, 10%);
  }

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

RGB Code Hex Code Preview
rgb(12, 16, 40, 10%) #0c10281a  
rgb(12, 16, 40, 20%) #0c102833  
rgb(12, 16, 40, 40%) #0c10284C  
rgb(12, 16, 40, 60%) #0c102899  
rgb(12, 16, 40, 80%) #0c1028CC  
rgb(12, 16, 40, 100%) #0c1028FF  

Saturated and desaturated colors of #0c1028

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

#0c1028 Color Usage In CSS

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