Random Color Generator

#30021b Color

Color Codes
Hex Code #30021b
RGB Code rgb(48, 02, 27)
HSL Code hsl(327, 92%, 10%)

#30021b Color Syntax

rgb()

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

 main {
    background-color: rgb(48, 02, 27);
   }

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(327, 92%, 10%);
  }

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 #30021b

RGB Code Hex Code Preview
rgb(48, 02, 27, 10%) #30021b1a  
rgb(48, 02, 27, 20%) #30021b33  
rgb(48, 02, 27, 40%) #30021b4C  
rgb(48, 02, 27, 60%) #30021b99  
rgb(48, 02, 27, 80%) #30021bCC  
rgb(48, 02, 27, 100%) #30021bFF  

Saturated and desaturated colors of #30021b

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

#30021b Color Usage In CSS

 body {
    color: #30021b;
    }
 p {
    color: rgb(48, 02, 27);
    }
 header {
    border-bottom:1px solid #30021b;
    }
Recent Random Colors