Random Color Generator

#12123e Color

Color Codes
Hex Code #12123e
RGB Code rgb(18, 18, 62)
HSL Code hsl(240, 55%, 16%)

#12123e Color Syntax

rgb()

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

 main {
    background-color: rgb(18, 18, 62);
   }

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(240, 55%, 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 #12123e

RGB Code Hex Code Preview
rgb(18, 18, 62, 10%) #12123e1a  
rgb(18, 18, 62, 20%) #12123e33  
rgb(18, 18, 62, 40%) #12123e4C  
rgb(18, 18, 62, 60%) #12123e99  
rgb(18, 18, 62, 80%) #12123eCC  
rgb(18, 18, 62, 100%) #12123eFF  

Saturated and desaturated colors of #12123e

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

#12123e Color Usage In CSS

 body {
    color: #12123e;
    }
 p {
    color: rgb(18, 18, 62);
    }
 header {
    border-bottom:1px solid #12123e;
    }
Recent Random Colors