Random Color Generator

#371e50 Color

Color Codes
Hex Code #371e50
RGB Code rgb(55, 30, 80)
HSL Code hsl(270, 45%, 22%)

#371e50 Color Syntax

rgb()

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

 main {
    background-color: rgb(55, 30, 80);
   }

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(270, 45%, 22%);
  }

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 #371e50

RGB Code Hex Code Preview
rgb(55, 30, 80, 10%) #371e501a  
rgb(55, 30, 80, 20%) #371e5033  
rgb(55, 30, 80, 40%) #371e504C  
rgb(55, 30, 80, 60%) #371e5099  
rgb(55, 30, 80, 80%) #371e50CC  
rgb(55, 30, 80, 100%) #371e50FF  

Saturated and desaturated colors of #371e50

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

#371e50 Color Usage In CSS

 body {
    color: #371e50;
    }
 p {
    color: rgb(55, 30, 80);
    }
 header {
    border-bottom:1px solid #371e50;
    }
Recent Random Colors