Random Color Generator

#311486 Color

Color Codes
Hex Code #311486
RGB Code rgb(49, 20, 134)
HSL Code hsl(255, 74%, 30%)

#311486 Color Syntax

rgb()

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

 main {
    background-color: rgb(49, 20, 134);
   }

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(255, 74%, 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 #311486

RGB Code Hex Code Preview
rgb(49, 20, 134, 10%) #3114861a  
rgb(49, 20, 134, 20%) #31148633  
rgb(49, 20, 134, 40%) #3114864C  
rgb(49, 20, 134, 60%) #31148699  
rgb(49, 20, 134, 80%) #311486CC  
rgb(49, 20, 134, 100%) #311486FF  

Saturated and desaturated colors of #311486

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

#311486 Color Usage In CSS

 body {
    color: #311486;
    }
 p {
    color: rgb(49, 20, 134);
    }
 header {
    border-bottom:1px solid #311486;
    }
Recent Random Colors