Random Color Generator

#2d50dc Color

Color Codes
Hex Code #2d50dc
RGB Code rgb(45, 80, 220)
HSL Code hsl(228, 71%, 52%)

#2d50dc Color Syntax

rgb()

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

 main {
    background-color: rgb(45, 80, 220);
   }

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(228, 71%, 52%);
  }

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 #2d50dc

RGB Code Hex Code Preview
rgb(45, 80, 220, 10%) #2d50dc1a  
rgb(45, 80, 220, 20%) #2d50dc33  
rgb(45, 80, 220, 40%) #2d50dc4C  
rgb(45, 80, 220, 60%) #2d50dc99  
rgb(45, 80, 220, 80%) #2d50dcCC  
rgb(45, 80, 220, 100%) #2d50dcFF  

Saturated and desaturated colors of #2d50dc

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

#2d50dc Color Usage In CSS

 body {
    color: #2d50dc;
    }
 p {
    color: rgb(45, 80, 220);
    }
 header {
    border-bottom:1px solid #2d50dc;
    }
Recent Random Colors