Random Color Generator

#1218df Color

Color Codes
Hex Code #1218df
RGB Code rgb(18, 24, 223)
HSL Code hsl(238, 85%, 47%)

#1218df Color Syntax

rgb()

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

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

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(238, 85%, 47%);
  }

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 #1218df

RGB Code Hex Code Preview
rgb(18, 24, 223, 10%) #1218df1a  
rgb(18, 24, 223, 20%) #1218df33  
rgb(18, 24, 223, 40%) #1218df4C  
rgb(18, 24, 223, 60%) #1218df99  
rgb(18, 24, 223, 80%) #1218dfCC  
rgb(18, 24, 223, 100%) #1218dfFF  

Saturated and desaturated colors of #1218df

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

#1218df Color Usage In CSS

 body {
    color: #1218df;
    }
 p {
    color: rgb(18, 24, 223);
    }
 header {
    border-bottom:1px solid #1218df;
    }
Recent Random Colors