Random Color Generator

#1c188e Color

Color Codes
Hex Code #1c188e
RGB Code rgb(28, 24, 142)
HSL Code hsl(242, 71%, 33%)

#1c188e Color Syntax

rgb()

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

 main {
    background-color: rgb(28, 24, 142);
   }

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, 71%, 33%);
  }

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

RGB Code Hex Code Preview
rgb(28, 24, 142, 10%) #1c188e1a  
rgb(28, 24, 142, 20%) #1c188e33  
rgb(28, 24, 142, 40%) #1c188e4C  
rgb(28, 24, 142, 60%) #1c188e99  
rgb(28, 24, 142, 80%) #1c188eCC  
rgb(28, 24, 142, 100%) #1c188eFF  

Saturated and desaturated colors of #1c188e

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

#1c188e Color Usage In CSS

 body {
    color: #1c188e;
    }
 p {
    color: rgb(28, 24, 142);
    }
 header {
    border-bottom:1px solid #1c188e;
    }
Recent Random Colors