Random Color Generator

#304c9a Color

Color Codes
Hex Code #304c9a
RGB Code rgb(48, 76, 154)
HSL Code hsl(224, 52%, 40%)

#304c9a Color Syntax

rgb()

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

 main {
    background-color: rgb(48, 76, 154);
   }

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(224, 52%, 40%);
  }

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 #304c9a

RGB Code Hex Code Preview
rgb(48, 76, 154, 10%) #304c9a1a  
rgb(48, 76, 154, 20%) #304c9a33  
rgb(48, 76, 154, 40%) #304c9a4C  
rgb(48, 76, 154, 60%) #304c9a99  
rgb(48, 76, 154, 80%) #304c9aCC  
rgb(48, 76, 154, 100%) #304c9aFF  

Saturated and desaturated colors of #304c9a

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

#304c9a Color Usage In CSS

 body {
    color: #304c9a;
    }
 p {
    color: rgb(48, 76, 154);
    }
 header {
    border-bottom:1px solid #304c9a;
    }
Recent Random Colors