Random Color Generator

#1f4a35 Color

Color Codes
Hex Code #1f4a35
RGB Code rgb(31, 74, 53)
HSL Code hsl(151, 41%, 21%)

#1f4a35 Color Syntax

rgb()

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

 main {
    background-color: rgb(31, 74, 53);
   }

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(151, 41%, 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 #1f4a35

RGB Code Hex Code Preview
rgb(31, 74, 53, 10%) #1f4a351a  
rgb(31, 74, 53, 20%) #1f4a3533  
rgb(31, 74, 53, 40%) #1f4a354C  
rgb(31, 74, 53, 60%) #1f4a3599  
rgb(31, 74, 53, 80%) #1f4a35CC  
rgb(31, 74, 53, 100%) #1f4a35FF  

Saturated and desaturated colors of #1f4a35

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

#1f4a35 Color Usage In CSS

 body {
    color: #1f4a35;
    }
 p {
    color: rgb(31, 74, 53);
    }
 header {
    border-bottom:1px solid #1f4a35;
    }
Recent Random Colors