Random Color Generator

#2d6572 Color

Color Codes
Hex Code #2d6572
RGB Code rgb(45, 101, 114)
HSL Code hsl(191, 43%, 31%)

#2d6572 Color Syntax

rgb()

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

 main {
    background-color: rgb(45, 101, 114);
   }

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(191, 43%, 31%);
  }

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

RGB Code Hex Code Preview
rgb(45, 101, 114, 10%) #2d65721a  
rgb(45, 101, 114, 20%) #2d657233  
rgb(45, 101, 114, 40%) #2d65724C  
rgb(45, 101, 114, 60%) #2d657299  
rgb(45, 101, 114, 80%) #2d6572CC  
rgb(45, 101, 114, 100%) #2d6572FF  

Saturated and desaturated colors of #2d6572

HSL Code Preview
hsl(191, 10%, 31%)  
hsl(191, 20%, 31%)  
hsl(191, 40%, 31%)  
hsl(191, 60%, 31%)  
hsl(191, 80%, 31%)  
hsl(191, 100%, 31%)  

#2d6572 Color Usage In CSS

 body {
    color: #2d6572;
    }
 p {
    color: rgb(45, 101, 114);
    }
 header {
    border-bottom:1px solid #2d6572;
    }
Recent Random Colors