Random Color Generator

#1c1a4e Color

Color Codes
Hex Code #1c1a4e
RGB Code rgb(28, 26, 78)
HSL Code hsl(242, 50%, 20%)

#1c1a4e Color Syntax

rgb()

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

 main {
    background-color: rgb(28, 26, 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(242, 50%, 20%);
  }

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

RGB Code Hex Code Preview
rgb(28, 26, 78, 10%) #1c1a4e1a  
rgb(28, 26, 78, 20%) #1c1a4e33  
rgb(28, 26, 78, 40%) #1c1a4e4C  
rgb(28, 26, 78, 60%) #1c1a4e99  
rgb(28, 26, 78, 80%) #1c1a4eCC  
rgb(28, 26, 78, 100%) #1c1a4eFF  

Saturated and desaturated colors of #1c1a4e

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

#1c1a4e Color Usage In CSS

 body {
    color: #1c1a4e;
    }
 p {
    color: rgb(28, 26, 78);
    }
 header {
    border-bottom:1px solid #1c1a4e;
    }
Recent Random Colors