Random Color Generator

#311e79 Color

Color Codes
Hex Code #311e79
RGB Code rgb(49, 30, 121)
HSL Code hsl(253, 60%, 30%)

#311e79 Color Syntax

rgb()

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

 main {
    background-color: rgb(49, 30, 121);
   }

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, 60%, 30%);
  }

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 #311e79

RGB Code Hex Code Preview
rgb(49, 30, 121, 10%) #311e791a  
rgb(49, 30, 121, 20%) #311e7933  
rgb(49, 30, 121, 40%) #311e794C  
rgb(49, 30, 121, 60%) #311e7999  
rgb(49, 30, 121, 80%) #311e79CC  
rgb(49, 30, 121, 100%) #311e79FF  

Saturated and desaturated colors of #311e79

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

#311e79 Color Usage In CSS

 body {
    color: #311e79;
    }
 p {
    color: rgb(49, 30, 121);
    }
 header {
    border-bottom:1px solid #311e79;
    }
Recent Random Colors