Random Color Generator

#1f3e71 Color

Color Codes
Hex Code #1f3e71
RGB Code rgb(31, 62, 113)
HSL Code hsl(217, 57%, 28%)

#1f3e71 Color Syntax

rgb()

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

 main {
    background-color: rgb(31, 62, 113);
   }

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(217, 57%, 28%);
  }

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 #1f3e71

RGB Code Hex Code Preview
rgb(31, 62, 113, 10%) #1f3e711a  
rgb(31, 62, 113, 20%) #1f3e7133  
rgb(31, 62, 113, 40%) #1f3e714C  
rgb(31, 62, 113, 60%) #1f3e7199  
rgb(31, 62, 113, 80%) #1f3e71CC  
rgb(31, 62, 113, 100%) #1f3e71FF  

Saturated and desaturated colors of #1f3e71

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

#1f3e71 Color Usage In CSS

 body {
    color: #1f3e71;
    }
 p {
    color: rgb(31, 62, 113);
    }
 header {
    border-bottom:1px solid #1f3e71;
    }
Recent Random Colors