Random Color Generator

#4f58ab Color

Color Codes
Hex Code #4f58ab
RGB Code rgb(79, 88, 171)
HSL Code hsl(234, 37%, 49%)

#4f58ab Color Syntax

rgb()

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

 main {
    background-color: rgb(79, 88, 171);
   }

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, 37%, 49%);
  }

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 #4f58ab

RGB Code Hex Code Preview
rgb(79, 88, 171, 10%) #4f58ab1a  
rgb(79, 88, 171, 20%) #4f58ab33  
rgb(79, 88, 171, 40%) #4f58ab4C  
rgb(79, 88, 171, 60%) #4f58ab99  
rgb(79, 88, 171, 80%) #4f58abCC  
rgb(79, 88, 171, 100%) #4f58abFF  

Saturated and desaturated colors of #4f58ab

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

#4f58ab Color Usage In CSS

 body {
    color: #4f58ab;
    }
 p {
    color: rgb(79, 88, 171);
    }
 header {
    border-bottom:1px solid #4f58ab;
    }
Recent Random Colors