Random Color Generator

#1220d3 Color

Color Codes
Hex Code #1220d3
RGB Code rgb(18, 32, 211)
HSL Code hsl(236, 84%, 45%)

#1220d3 Color Syntax

rgb()

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

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

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, 84%, 45%);
  }

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 #1220d3

RGB Code Hex Code Preview
rgb(18, 32, 211, 10%) #1220d31a  
rgb(18, 32, 211, 20%) #1220d333  
rgb(18, 32, 211, 40%) #1220d34C  
rgb(18, 32, 211, 60%) #1220d399  
rgb(18, 32, 211, 80%) #1220d3CC  
rgb(18, 32, 211, 100%) #1220d3FF  

Saturated and desaturated colors of #1220d3

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

#1220d3 Color Usage In CSS

 body {
    color: #1220d3;
    }
 p {
    color: rgb(18, 32, 211);
    }
 header {
    border-bottom:1px solid #1220d3;
    }
Recent Random Colors