Random Color Generator

#162f53 Color

Color Codes
Hex Code #162f53
RGB Code rgb(22, 47, 83)
HSL Code hsl(215, 58%, 21%)

#162f53 Color Syntax

rgb()

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

 main {
    background-color: rgb(22, 47, 83);
   }

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(215, 58%, 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 #162f53

RGB Code Hex Code Preview
rgb(22, 47, 83, 10%) #162f531a  
rgb(22, 47, 83, 20%) #162f5333  
rgb(22, 47, 83, 40%) #162f534C  
rgb(22, 47, 83, 60%) #162f5399  
rgb(22, 47, 83, 80%) #162f53CC  
rgb(22, 47, 83, 100%) #162f53FF  

Saturated and desaturated colors of #162f53

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

#162f53 Color Usage In CSS

 body {
    color: #162f53;
    }
 p {
    color: rgb(22, 47, 83);
    }
 header {
    border-bottom:1px solid #162f53;
    }
Recent Random Colors