Random Color Generator

#2b3040 Color

Color Codes
Hex Code #2b3040
RGB Code rgb(43, 48, 64)
HSL Code hsl(226, 20%, 21%)

#2b3040 Color Syntax

rgb()

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

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

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(226, 20%, 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 #2b3040

RGB Code Hex Code Preview
rgb(43, 48, 64, 10%) #2b30401a  
rgb(43, 48, 64, 20%) #2b304033  
rgb(43, 48, 64, 40%) #2b30404C  
rgb(43, 48, 64, 60%) #2b304099  
rgb(43, 48, 64, 80%) #2b3040CC  
rgb(43, 48, 64, 100%) #2b3040FF  

Saturated and desaturated colors of #2b3040

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

#2b3040 Color Usage In CSS

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