Random Color Generator

#2f221b Color

Color Codes
Hex Code #2f221b
RGB Code rgb(47, 34, 27)
HSL Code hsl(21, 27%, 15%)

#2f221b Color Syntax

rgb()

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

 main {
    background-color: rgb(47, 34, 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(21, 27%, 15%);
  }

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

RGB Code Hex Code Preview
rgb(47, 34, 27, 10%) #2f221b1a  
rgb(47, 34, 27, 20%) #2f221b33  
rgb(47, 34, 27, 40%) #2f221b4C  
rgb(47, 34, 27, 60%) #2f221b99  
rgb(47, 34, 27, 80%) #2f221bCC  
rgb(47, 34, 27, 100%) #2f221bFF  

Saturated and desaturated colors of #2f221b

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

#2f221b Color Usage In CSS

 body {
    color: #2f221b;
    }
 p {
    color: rgb(47, 34, 27);
    }
 header {
    border-bottom:1px solid #2f221b;
    }
Recent Random Colors