Random Color Generator

#2d04b6 Color

Color Codes
Hex Code #2d04b6
RGB Code rgb(45, 04, 182)
HSL Code hsl(254, 96%, 36%)

#2d04b6 Color Syntax

rgb()

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

 main {
    background-color: rgb(45, 04, 182);
   }

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, 96%, 36%);
  }

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

RGB Code Hex Code Preview
rgb(45, 04, 182, 10%) #2d04b61a  
rgb(45, 04, 182, 20%) #2d04b633  
rgb(45, 04, 182, 40%) #2d04b64C  
rgb(45, 04, 182, 60%) #2d04b699  
rgb(45, 04, 182, 80%) #2d04b6CC  
rgb(45, 04, 182, 100%) #2d04b6FF  

Saturated and desaturated colors of #2d04b6

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

#2d04b6 Color Usage In CSS

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