Random Color Generator

#334791 Color

Color Codes
Hex Code #334791
RGB Code rgb(51, 71, 145)
HSL Code hsl(227, 48%, 38%)

#334791 Color Syntax

rgb()

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

 main {
    background-color: rgb(51, 71, 145);
   }

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(227, 48%, 38%);
  }

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 #334791

RGB Code Hex Code Preview
rgb(51, 71, 145, 10%) #3347911a  
rgb(51, 71, 145, 20%) #33479133  
rgb(51, 71, 145, 40%) #3347914C  
rgb(51, 71, 145, 60%) #33479199  
rgb(51, 71, 145, 80%) #334791CC  
rgb(51, 71, 145, 100%) #334791FF  

Saturated and desaturated colors of #334791

HSL Code Preview
hsl(227, 10%, 38%)  
hsl(227, 20%, 38%)  
hsl(227, 40%, 38%)  
hsl(227, 60%, 38%)  
hsl(227, 80%, 38%)  
hsl(227, 100%, 38%)  

#334791 Color Usage In CSS

 body {
    color: #334791;
    }
 p {
    color: rgb(51, 71, 145);
    }
 header {
    border-bottom:1px solid #334791;
    }
Recent Random Colors