Random Color Generator

#1a3760 Color

Color Codes
Hex Code #1a3760
RGB Code rgb(26, 55, 96)
HSL Code hsl(215, 57%, 24%)

#1a3760 Color Syntax

rgb()

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

 main {
    background-color: rgb(26, 55, 96);
   }

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, 57%, 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 #1a3760

RGB Code Hex Code Preview
rgb(26, 55, 96, 10%) #1a37601a  
rgb(26, 55, 96, 20%) #1a376033  
rgb(26, 55, 96, 40%) #1a37604C  
rgb(26, 55, 96, 60%) #1a376099  
rgb(26, 55, 96, 80%) #1a3760CC  
rgb(26, 55, 96, 100%) #1a3760FF  

Saturated and desaturated colors of #1a3760

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

#1a3760 Color Usage In CSS

 body {
    color: #1a3760;
    }
 p {
    color: rgb(26, 55, 96);
    }
 header {
    border-bottom:1px solid #1a3760;
    }
Recent Random Colors