Random Color Generator

#334aba Color

Color Codes
Hex Code #334aba
RGB Code rgb(51, 74, 186)
HSL Code hsl(230, 57%, 46%)

#334aba Color Syntax

rgb()

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

 main {
    background-color: rgb(51, 74, 186);
   }

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(230, 57%, 46%);
  }

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 #334aba

RGB Code Hex Code Preview
rgb(51, 74, 186, 10%) #334aba1a  
rgb(51, 74, 186, 20%) #334aba33  
rgb(51, 74, 186, 40%) #334aba4C  
rgb(51, 74, 186, 60%) #334aba99  
rgb(51, 74, 186, 80%) #334abaCC  
rgb(51, 74, 186, 100%) #334abaFF  

Saturated and desaturated colors of #334aba

HSL Code Preview
hsl(230, 10%, 46%)  
hsl(230, 20%, 46%)  
hsl(230, 40%, 46%)  
hsl(230, 60%, 46%)  
hsl(230, 80%, 46%)  
hsl(230, 100%, 46%)  

#334aba Color Usage In CSS

 body {
    color: #334aba;
    }
 p {
    color: rgb(51, 74, 186);
    }
 header {
    border-bottom:1px solid #334aba;
    }
Recent Random Colors