Random Color Generator

#040221 Color

Color Codes
Hex Code #040221
RGB Code rgb(04, 02, 33)
HSL Code hsl(244, 89%, 7%)

#040221 Color Syntax

rgb()

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

 main {
    background-color: rgb(04, 02, 33);
   }

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

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 #040221

RGB Code Hex Code Preview
rgb(04, 02, 33, 10%) #0402211a  
rgb(04, 02, 33, 20%) #04022133  
rgb(04, 02, 33, 40%) #0402214C  
rgb(04, 02, 33, 60%) #04022199  
rgb(04, 02, 33, 80%) #040221CC  
rgb(04, 02, 33, 100%) #040221FF  

Saturated and desaturated colors of #040221

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

#040221 Color Usage In CSS

 body {
    color: #040221;
    }
 p {
    color: rgb(04, 02, 33);
    }
 header {
    border-bottom:1px solid #040221;
    }
Recent Random Colors