Random Color Generator

#2f7cfd Color

Color Codes
Hex Code #2f7cfd
RGB Code rgb(47, 124, 253)
HSL Code hsl(218, 98%, 59%)

#2f7cfd Color Syntax

rgb()

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

 main {
    background-color: rgb(47, 124, 253);
   }

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(218, 98%, 59%);
  }

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 #2f7cfd

RGB Code Hex Code Preview
rgb(47, 124, 253, 10%) #2f7cfd1a  
rgb(47, 124, 253, 20%) #2f7cfd33  
rgb(47, 124, 253, 40%) #2f7cfd4C  
rgb(47, 124, 253, 60%) #2f7cfd99  
rgb(47, 124, 253, 80%) #2f7cfdCC  
rgb(47, 124, 253, 100%) #2f7cfdFF  

Saturated and desaturated colors of #2f7cfd

HSL Code Preview
hsl(218, 10%, 59%)  
hsl(218, 20%, 59%)  
hsl(218, 40%, 59%)  
hsl(218, 60%, 59%)  
hsl(218, 80%, 59%)  
hsl(218, 100%, 59%)  

#2f7cfd Color Usage In CSS

 body {
    color: #2f7cfd;
    }
 p {
    color: rgb(47, 124, 253);
    }
 header {
    border-bottom:1px solid #2f7cfd;
    }
Recent Random Colors