Random Color Generator

#240c88 Color

Color Codes
Hex Code #240c88
RGB Code rgb(36, 12, 136)
HSL Code hsl(252, 84%, 29%)

#240c88 Color Syntax

rgb()

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

 main {
    background-color: rgb(36, 12, 136);
   }

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(252, 84%, 29%);
  }

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 #240c88

RGB Code Hex Code Preview
rgb(36, 12, 136, 10%) #240c881a  
rgb(36, 12, 136, 20%) #240c8833  
rgb(36, 12, 136, 40%) #240c884C  
rgb(36, 12, 136, 60%) #240c8899  
rgb(36, 12, 136, 80%) #240c88CC  
rgb(36, 12, 136, 100%) #240c88FF  

Saturated and desaturated colors of #240c88

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

#240c88 Color Usage In CSS

 body {
    color: #240c88;
    }
 p {
    color: rgb(36, 12, 136);
    }
 header {
    border-bottom:1px solid #240c88;
    }
Recent Random Colors