Random Color Generator

#2c118e Color

Color Codes
Hex Code #2c118e
RGB Code rgb(44, 17, 142)
HSL Code hsl(253, 79%, 31%)

#2c118e Color Syntax

rgb()

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

 main {
    background-color: rgb(44, 17, 142);
   }

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, 79%, 31%);
  }

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

RGB Code Hex Code Preview
rgb(44, 17, 142, 10%) #2c118e1a  
rgb(44, 17, 142, 20%) #2c118e33  
rgb(44, 17, 142, 40%) #2c118e4C  
rgb(44, 17, 142, 60%) #2c118e99  
rgb(44, 17, 142, 80%) #2c118eCC  
rgb(44, 17, 142, 100%) #2c118eFF  

Saturated and desaturated colors of #2c118e

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

#2c118e Color Usage In CSS

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