Random Color Generator

#122791 Color

Color Codes
Hex Code #122791
RGB Code rgb(18, 39, 145)
HSL Code hsl(230, 78%, 32%)

#122791 Color Syntax

rgb()

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

 main {
    background-color: rgb(18, 39, 145);
   }

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, 78%, 32%);
  }

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 #122791

RGB Code Hex Code Preview
rgb(18, 39, 145, 10%) #1227911a  
rgb(18, 39, 145, 20%) #12279133  
rgb(18, 39, 145, 40%) #1227914C  
rgb(18, 39, 145, 60%) #12279199  
rgb(18, 39, 145, 80%) #122791CC  
rgb(18, 39, 145, 100%) #122791FF  

Saturated and desaturated colors of #122791

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

#122791 Color Usage In CSS

 body {
    color: #122791;
    }
 p {
    color: rgb(18, 39, 145);
    }
 header {
    border-bottom:1px solid #122791;
    }
Recent Random Colors