Random Color Generator

#2b1185 Color

Color Codes
Hex Code #2b1185
RGB Code rgb(43, 17, 133)
HSL Code hsl(253, 77%, 29%)

#2b1185 Color Syntax

rgb()

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

 main {
    background-color: rgb(43, 17, 133);
   }

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(253, 77%, 29%);
  }

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

RGB Code Hex Code Preview
rgb(43, 17, 133, 10%) #2b11851a  
rgb(43, 17, 133, 20%) #2b118533  
rgb(43, 17, 133, 40%) #2b11854C  
rgb(43, 17, 133, 60%) #2b118599  
rgb(43, 17, 133, 80%) #2b1185CC  
rgb(43, 17, 133, 100%) #2b1185FF  

Saturated and desaturated colors of #2b1185

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

#2b1185 Color Usage In CSS

 body {
    color: #2b1185;
    }
 p {
    color: rgb(43, 17, 133);
    }
 header {
    border-bottom:1px solid #2b1185;
    }
Recent Random Colors