Random Color Generator

#303e8c Color

Color Codes
Hex Code #303e8c
RGB Code rgb(48, 62, 140)
HSL Code hsl(231, 49%, 37%)

#303e8c Color Syntax

rgb()

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

 main {
    background-color: rgb(48, 62, 140);
   }

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

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 #303e8c

RGB Code Hex Code Preview
rgb(48, 62, 140, 10%) #303e8c1a  
rgb(48, 62, 140, 20%) #303e8c33  
rgb(48, 62, 140, 40%) #303e8c4C  
rgb(48, 62, 140, 60%) #303e8c99  
rgb(48, 62, 140, 80%) #303e8cCC  
rgb(48, 62, 140, 100%) #303e8cFF  

Saturated and desaturated colors of #303e8c

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

#303e8c Color Usage In CSS

 body {
    color: #303e8c;
    }
 p {
    color: rgb(48, 62, 140);
    }
 header {
    border-bottom:1px solid #303e8c;
    }
Recent Random Colors