Random Color Generator

#3a5ac4 Color

Color Codes
Hex Code #3a5ac4
RGB Code rgb(58, 90, 196)
HSL Code hsl(226, 54%, 50%)

#3a5ac4 Color Syntax

rgb()

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

 main {
    background-color: rgb(58, 90, 196);
   }

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(226, 54%, 50%);
  }

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 #3a5ac4

RGB Code Hex Code Preview
rgb(58, 90, 196, 10%) #3a5ac41a  
rgb(58, 90, 196, 20%) #3a5ac433  
rgb(58, 90, 196, 40%) #3a5ac44C  
rgb(58, 90, 196, 60%) #3a5ac499  
rgb(58, 90, 196, 80%) #3a5ac4CC  
rgb(58, 90, 196, 100%) #3a5ac4FF  

Saturated and desaturated colors of #3a5ac4

HSL Code Preview
hsl(226, 10%, 50%)  
hsl(226, 20%, 50%)  
hsl(226, 40%, 50%)  
hsl(226, 60%, 50%)  
hsl(226, 80%, 50%)  
hsl(226, 100%, 50%)  

#3a5ac4 Color Usage In CSS

 body {
    color: #3a5ac4;
    }
 p {
    color: rgb(58, 90, 196);
    }
 header {
    border-bottom:1px solid #3a5ac4;
    }
Recent Random Colors