Random Color Generator

#40759d Color

Color Codes
Hex Code #40759d
RGB Code rgb(64, 117, 157)
HSL Code hsl(206, 42%, 43%)

#40759d Color Syntax

rgb()

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

 main {
    background-color: rgb(64, 117, 157);
   }

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(206, 42%, 43%);
  }

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

RGB Code Hex Code Preview
rgb(64, 117, 157, 10%) #40759d1a  
rgb(64, 117, 157, 20%) #40759d33  
rgb(64, 117, 157, 40%) #40759d4C  
rgb(64, 117, 157, 60%) #40759d99  
rgb(64, 117, 157, 80%) #40759dCC  
rgb(64, 117, 157, 100%) #40759dFF  

Saturated and desaturated colors of #40759d

HSL Code Preview
hsl(206, 10%, 43%)  
hsl(206, 20%, 43%)  
hsl(206, 40%, 43%)  
hsl(206, 60%, 43%)  
hsl(206, 80%, 43%)  
hsl(206, 100%, 43%)  

#40759d Color Usage In CSS

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