Random Color Generator

#3540a0 Color

Color Codes
Hex Code #3540a0
RGB Code rgb(53, 64, 160)
HSL Code hsl(234, 50%, 42%)

#3540a0 Color Syntax

rgb()

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

 main {
    background-color: rgb(53, 64, 160);
   }

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(234, 50%, 42%);
  }

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 #3540a0

RGB Code Hex Code Preview
rgb(53, 64, 160, 10%) #3540a01a  
rgb(53, 64, 160, 20%) #3540a033  
rgb(53, 64, 160, 40%) #3540a04C  
rgb(53, 64, 160, 60%) #3540a099  
rgb(53, 64, 160, 80%) #3540a0CC  
rgb(53, 64, 160, 100%) #3540a0FF  

Saturated and desaturated colors of #3540a0

HSL Code Preview
hsl(234, 10%, 42%)  
hsl(234, 20%, 42%)  
hsl(234, 40%, 42%)  
hsl(234, 60%, 42%)  
hsl(234, 80%, 42%)  
hsl(234, 100%, 42%)  

#3540a0 Color Usage In CSS

 body {
    color: #3540a0;
    }
 p {
    color: rgb(53, 64, 160);
    }
 header {
    border-bottom:1px solid #3540a0;
    }
Recent Random Colors