Random Color Generator

#2b4042 Color

Color Codes
Hex Code #2b4042
RGB Code rgb(43, 64, 66)
HSL Code hsl(185, 21%, 21%)

#2b4042 Color Syntax

rgb()

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

 main {
    background-color: rgb(43, 64, 66);
   }

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(185, 21%, 21%);
  }

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

RGB Code Hex Code Preview
rgb(43, 64, 66, 10%) #2b40421a  
rgb(43, 64, 66, 20%) #2b404233  
rgb(43, 64, 66, 40%) #2b40424C  
rgb(43, 64, 66, 60%) #2b404299  
rgb(43, 64, 66, 80%) #2b4042CC  
rgb(43, 64, 66, 100%) #2b4042FF  

Saturated and desaturated colors of #2b4042

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

#2b4042 Color Usage In CSS

 body {
    color: #2b4042;
    }
 p {
    color: rgb(43, 64, 66);
    }
 header {
    border-bottom:1px solid #2b4042;
    }
Recent Random Colors