Random Color Generator

#3b1826 Color

Color Codes
Hex Code #3b1826
RGB Code rgb(59, 24, 38)
HSL Code hsl(336, 42%, 16%)

#3b1826 Color Syntax

rgb()

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

 main {
    background-color: rgb(59, 24, 38);
   }

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(336, 42%, 16%);
  }

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 #3b1826

RGB Code Hex Code Preview
rgb(59, 24, 38, 10%) #3b18261a  
rgb(59, 24, 38, 20%) #3b182633  
rgb(59, 24, 38, 40%) #3b18264C  
rgb(59, 24, 38, 60%) #3b182699  
rgb(59, 24, 38, 80%) #3b1826CC  
rgb(59, 24, 38, 100%) #3b1826FF  

Saturated and desaturated colors of #3b1826

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

#3b1826 Color Usage In CSS

 body {
    color: #3b1826;
    }
 p {
    color: rgb(59, 24, 38);
    }
 header {
    border-bottom:1px solid #3b1826;
    }
Recent Random Colors