Random Color Generator

#3a404e Color

Color Codes
Hex Code #3a404e
RGB Code rgb(58, 64, 78)
HSL Code hsl(222, 15%, 27%)

#3a404e Color Syntax

rgb()

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

 main {
    background-color: rgb(58, 64, 78);
   }

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(222, 15%, 27%);
  }

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

RGB Code Hex Code Preview
rgb(58, 64, 78, 10%) #3a404e1a  
rgb(58, 64, 78, 20%) #3a404e33  
rgb(58, 64, 78, 40%) #3a404e4C  
rgb(58, 64, 78, 60%) #3a404e99  
rgb(58, 64, 78, 80%) #3a404eCC  
rgb(58, 64, 78, 100%) #3a404eFF  

Saturated and desaturated colors of #3a404e

HSL Code Preview
hsl(222, 10%, 27%)  
hsl(222, 20%, 27%)  
hsl(222, 40%, 27%)  
hsl(222, 60%, 27%)  
hsl(222, 80%, 27%)  
hsl(222, 100%, 27%)  

#3a404e Color Usage In CSS

 body {
    color: #3a404e;
    }
 p {
    color: rgb(58, 64, 78);
    }
 header {
    border-bottom:1px solid #3a404e;
    }
Recent Random Colors