Random Color Generator

#2854d4 Color

Color Codes
Hex Code #2854d4
RGB Code rgb(40, 84, 212)
HSL Code hsl(225, 68%, 49%)

#2854d4 Color Syntax

rgb()

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

 main {
    background-color: rgb(40, 84, 212);
   }

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(225, 68%, 49%);
  }

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 #2854d4

RGB Code Hex Code Preview
rgb(40, 84, 212, 10%) #2854d41a  
rgb(40, 84, 212, 20%) #2854d433  
rgb(40, 84, 212, 40%) #2854d44C  
rgb(40, 84, 212, 60%) #2854d499  
rgb(40, 84, 212, 80%) #2854d4CC  
rgb(40, 84, 212, 100%) #2854d4FF  

Saturated and desaturated colors of #2854d4

HSL Code Preview
hsl(225, 10%, 49%)  
hsl(225, 20%, 49%)  
hsl(225, 40%, 49%)  
hsl(225, 60%, 49%)  
hsl(225, 80%, 49%)  
hsl(225, 100%, 49%)  

#2854d4 Color Usage In CSS

 body {
    color: #2854d4;
    }
 p {
    color: rgb(40, 84, 212);
    }
 header {
    border-bottom:1px solid #2854d4;
    }
Recent Random Colors