Random Color Generator

#302af3 Color

Color Codes
Hex Code #302af3
RGB Code rgb(48, 42, 243)
HSL Code hsl(242, 89%, 56%)

#302af3 Color Syntax

rgb()

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

 main {
    background-color: rgb(48, 42, 243);
   }

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, 89%, 56%);
  }

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 #302af3

RGB Code Hex Code Preview
rgb(48, 42, 243, 10%) #302af31a  
rgb(48, 42, 243, 20%) #302af333  
rgb(48, 42, 243, 40%) #302af34C  
rgb(48, 42, 243, 60%) #302af399  
rgb(48, 42, 243, 80%) #302af3CC  
rgb(48, 42, 243, 100%) #302af3FF  

Saturated and desaturated colors of #302af3

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

#302af3 Color Usage In CSS

 body {
    color: #302af3;
    }
 p {
    color: rgb(48, 42, 243);
    }
 header {
    border-bottom:1px solid #302af3;
    }
Recent Random Colors