Random Color Generator

#120248 Color

Color Codes
Hex Code #120248
RGB Code rgb(18, 02, 72)
HSL Code hsl(254, 95%, 15%)

#120248 Color Syntax

rgb()

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

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

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(254, 95%, 15%);
  }

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 #120248

RGB Code Hex Code Preview
rgb(18, 02, 72, 10%) #1202481a  
rgb(18, 02, 72, 20%) #12024833  
rgb(18, 02, 72, 40%) #1202484C  
rgb(18, 02, 72, 60%) #12024899  
rgb(18, 02, 72, 80%) #120248CC  
rgb(18, 02, 72, 100%) #120248FF  

Saturated and desaturated colors of #120248

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

#120248 Color Usage In CSS

 body {
    color: #120248;
    }
 p {
    color: rgb(18, 02, 72);
    }
 header {
    border-bottom:1px solid #120248;
    }
Recent Random Colors