Random Color Generator

#403b61 Color

Color Codes
Hex Code #403b61
RGB Code rgb(64, 59, 97)
HSL Code hsl(248, 24%, 31%)

#403b61 Color Syntax

rgb()

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

 main {
    background-color: rgb(64, 59, 97);
   }

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(248, 24%, 31%);
  }

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 #403b61

RGB Code Hex Code Preview
rgb(64, 59, 97, 10%) #403b611a  
rgb(64, 59, 97, 20%) #403b6133  
rgb(64, 59, 97, 40%) #403b614C  
rgb(64, 59, 97, 60%) #403b6199  
rgb(64, 59, 97, 80%) #403b61CC  
rgb(64, 59, 97, 100%) #403b61FF  

Saturated and desaturated colors of #403b61

HSL Code Preview
hsl(248, 10%, 31%)  
hsl(248, 20%, 31%)  
hsl(248, 40%, 31%)  
hsl(248, 60%, 31%)  
hsl(248, 80%, 31%)  
hsl(248, 100%, 31%)  

#403b61 Color Usage In CSS

 body {
    color: #403b61;
    }
 p {
    color: rgb(64, 59, 97);
    }
 header {
    border-bottom:1px solid #403b61;
    }
Recent Random Colors