Random Color Generator

#2d31ba Color

Color Codes
Hex Code #2d31ba
RGB Code rgb(45, 49, 186)
HSL Code hsl(238, 61%, 45%)

#2d31ba Color Syntax

rgb()

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

 main {
    background-color: rgb(45, 49, 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(238, 61%, 45%);
  }

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 #2d31ba

RGB Code Hex Code Preview
rgb(45, 49, 186, 10%) #2d31ba1a  
rgb(45, 49, 186, 20%) #2d31ba33  
rgb(45, 49, 186, 40%) #2d31ba4C  
rgb(45, 49, 186, 60%) #2d31ba99  
rgb(45, 49, 186, 80%) #2d31baCC  
rgb(45, 49, 186, 100%) #2d31baFF  

Saturated and desaturated colors of #2d31ba

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

#2d31ba Color Usage In CSS

 body {
    color: #2d31ba;
    }
 p {
    color: rgb(45, 49, 186);
    }
 header {
    border-bottom:1px solid #2d31ba;
    }
Recent Random Colors