Random Color Generator

#1802f9 Color

Color Codes
Hex Code #1802f9
RGB Code rgb(24, 02, 249)
HSL Code hsl(245, 98%, 49%)

#1802f9 Color Syntax

rgb()

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

 main {
    background-color: rgb(24, 02, 249);
   }

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(245, 98%, 49%);
  }

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 #1802f9

RGB Code Hex Code Preview
rgb(24, 02, 249, 10%) #1802f91a  
rgb(24, 02, 249, 20%) #1802f933  
rgb(24, 02, 249, 40%) #1802f94C  
rgb(24, 02, 249, 60%) #1802f999  
rgb(24, 02, 249, 80%) #1802f9CC  
rgb(24, 02, 249, 100%) #1802f9FF  

Saturated and desaturated colors of #1802f9

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

#1802f9 Color Usage In CSS

 body {
    color: #1802f9;
    }
 p {
    color: rgb(24, 02, 249);
    }
 header {
    border-bottom:1px solid #1802f9;
    }
Recent Random Colors