Random Color Generator

#2887f0 Color

Color Codes
Hex Code #2887f0
RGB Code rgb(40, 135, 240)
HSL Code hsl(212, 87%, 55%)

#2887f0 Color Syntax

rgb()

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

 main {
    background-color: rgb(40, 135, 240);
   }

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(212, 87%, 55%);
  }

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 #2887f0

RGB Code Hex Code Preview
rgb(40, 135, 240, 10%) #2887f01a  
rgb(40, 135, 240, 20%) #2887f033  
rgb(40, 135, 240, 40%) #2887f04C  
rgb(40, 135, 240, 60%) #2887f099  
rgb(40, 135, 240, 80%) #2887f0CC  
rgb(40, 135, 240, 100%) #2887f0FF  

Saturated and desaturated colors of #2887f0

HSL Code Preview
hsl(212, 10%, 55%)  
hsl(212, 20%, 55%)  
hsl(212, 40%, 55%)  
hsl(212, 60%, 55%)  
hsl(212, 80%, 55%)  
hsl(212, 100%, 55%)  

#2887f0 Color Usage In CSS

 body {
    color: #2887f0;
    }
 p {
    color: rgb(40, 135, 240);
    }
 header {
    border-bottom:1px solid #2887f0;
    }
Recent Random Colors