Random Color Generator

#1a3362 Color

Color Codes
Hex Code #1a3362
RGB Code rgb(26, 51, 98)
HSL Code hsl(219, 58%, 24%)

#1a3362 Color Syntax

rgb()

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

 main {
    background-color: rgb(26, 51, 98);
   }

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(219, 58%, 24%);
  }

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 #1a3362

RGB Code Hex Code Preview
rgb(26, 51, 98, 10%) #1a33621a  
rgb(26, 51, 98, 20%) #1a336233  
rgb(26, 51, 98, 40%) #1a33624C  
rgb(26, 51, 98, 60%) #1a336299  
rgb(26, 51, 98, 80%) #1a3362CC  
rgb(26, 51, 98, 100%) #1a3362FF  

Saturated and desaturated colors of #1a3362

HSL Code Preview
hsl(219, 10%, 24%)  
hsl(219, 20%, 24%)  
hsl(219, 40%, 24%)  
hsl(219, 60%, 24%)  
hsl(219, 80%, 24%)  
hsl(219, 100%, 24%)  

#1a3362 Color Usage In CSS

 body {
    color: #1a3362;
    }
 p {
    color: rgb(26, 51, 98);
    }
 header {
    border-bottom:1px solid #1a3362;
    }
Recent Random Colors