Random Color Generator

#2d1c4a Color

Color Codes
Hex Code #2d1c4a
RGB Code rgb(45, 28, 74)
HSL Code hsl(262, 45%, 20%)

#2d1c4a Color Syntax

rgb()

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

 main {
    background-color: rgb(45, 28, 74);
   }

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(262, 45%, 20%);
  }

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

RGB Code Hex Code Preview
rgb(45, 28, 74, 10%) #2d1c4a1a  
rgb(45, 28, 74, 20%) #2d1c4a33  
rgb(45, 28, 74, 40%) #2d1c4a4C  
rgb(45, 28, 74, 60%) #2d1c4a99  
rgb(45, 28, 74, 80%) #2d1c4aCC  
rgb(45, 28, 74, 100%) #2d1c4aFF  

Saturated and desaturated colors of #2d1c4a

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

#2d1c4a Color Usage In CSS

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