Random Color Generator

#40377d Color

Color Codes
Hex Code #40377d
RGB Code rgb(64, 55, 125)
HSL Code hsl(248, 39%, 35%)

#40377d Color Syntax

rgb()

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

 main {
    background-color: rgb(64, 55, 125);
   }

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, 39%, 35%);
  }

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 #40377d

RGB Code Hex Code Preview
rgb(64, 55, 125, 10%) #40377d1a  
rgb(64, 55, 125, 20%) #40377d33  
rgb(64, 55, 125, 40%) #40377d4C  
rgb(64, 55, 125, 60%) #40377d99  
rgb(64, 55, 125, 80%) #40377dCC  
rgb(64, 55, 125, 100%) #40377dFF  

Saturated and desaturated colors of #40377d

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

#40377d Color Usage In CSS

 body {
    color: #40377d;
    }
 p {
    color: rgb(64, 55, 125);
    }
 header {
    border-bottom:1px solid #40377d;
    }
Recent Random Colors