Random Color Generator

#041581 Color

Color Codes
Hex Code #041581
RGB Code rgb(04, 21, 129)
HSL Code hsl(232, 94%, 26%)

#041581 Color Syntax

rgb()

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

 main {
    background-color: rgb(04, 21, 129);
   }

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(232, 94%, 26%);
  }

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

RGB Code Hex Code Preview
rgb(04, 21, 129, 10%) #0415811a  
rgb(04, 21, 129, 20%) #04158133  
rgb(04, 21, 129, 40%) #0415814C  
rgb(04, 21, 129, 60%) #04158199  
rgb(04, 21, 129, 80%) #041581CC  
rgb(04, 21, 129, 100%) #041581FF  

Saturated and desaturated colors of #041581

HSL Code Preview
hsl(232, 10%, 26%)  
hsl(232, 20%, 26%)  
hsl(232, 40%, 26%)  
hsl(232, 60%, 26%)  
hsl(232, 80%, 26%)  
hsl(232, 100%, 26%)  

#041581 Color Usage In CSS

 body {
    color: #041581;
    }
 p {
    color: rgb(04, 21, 129);
    }
 header {
    border-bottom:1px solid #041581;
    }
Recent Random Colors