Random Color Generator

#1940de Color

Color Codes
Hex Code #1940de
RGB Code rgb(25, 64, 222)
HSL Code hsl(228, 80%, 48%)

#1940de Color Syntax

rgb()

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

 main {
    background-color: rgb(25, 64, 222);
   }

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(228, 80%, 48%);
  }

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 #1940de

RGB Code Hex Code Preview
rgb(25, 64, 222, 10%) #1940de1a  
rgb(25, 64, 222, 20%) #1940de33  
rgb(25, 64, 222, 40%) #1940de4C  
rgb(25, 64, 222, 60%) #1940de99  
rgb(25, 64, 222, 80%) #1940deCC  
rgb(25, 64, 222, 100%) #1940deFF  

Saturated and desaturated colors of #1940de

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

#1940de Color Usage In CSS

 body {
    color: #1940de;
    }
 p {
    color: rgb(25, 64, 222);
    }
 header {
    border-bottom:1px solid #1940de;
    }
Recent Random Colors