Random Color Generator

#20304f Color

Color Codes
Hex Code #20304f
RGB Code rgb(32, 48, 79)
HSL Code hsl(220, 42%, 22%)

#20304f Color Syntax

rgb()

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

 main {
    background-color: rgb(32, 48, 79);
   }

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(220, 42%, 22%);
  }

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 #20304f

RGB Code Hex Code Preview
rgb(32, 48, 79, 10%) #20304f1a  
rgb(32, 48, 79, 20%) #20304f33  
rgb(32, 48, 79, 40%) #20304f4C  
rgb(32, 48, 79, 60%) #20304f99  
rgb(32, 48, 79, 80%) #20304fCC  
rgb(32, 48, 79, 100%) #20304fFF  

Saturated and desaturated colors of #20304f

HSL Code Preview
hsl(220, 10%, 22%)  
hsl(220, 20%, 22%)  
hsl(220, 40%, 22%)  
hsl(220, 60%, 22%)  
hsl(220, 80%, 22%)  
hsl(220, 100%, 22%)  

#20304f Color Usage In CSS

 body {
    color: #20304f;
    }
 p {
    color: rgb(32, 48, 79);
    }
 header {
    border-bottom:1px solid #20304f;
    }
Recent Random Colors