Random Color Generator

#2f146c Color

Color Codes
Hex Code #2f146c
RGB Code rgb(47, 20, 108)
HSL Code hsl(258, 69%, 25%)

#2f146c Color Syntax

rgb()

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

 main {
    background-color: rgb(47, 20, 108);
   }

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(258, 69%, 25%);
  }

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

RGB Code Hex Code Preview
rgb(47, 20, 108, 10%) #2f146c1a  
rgb(47, 20, 108, 20%) #2f146c33  
rgb(47, 20, 108, 40%) #2f146c4C  
rgb(47, 20, 108, 60%) #2f146c99  
rgb(47, 20, 108, 80%) #2f146cCC  
rgb(47, 20, 108, 100%) #2f146cFF  

Saturated and desaturated colors of #2f146c

HSL Code Preview
hsl(258, 10%, 25%)  
hsl(258, 20%, 25%)  
hsl(258, 40%, 25%)  
hsl(258, 60%, 25%)  
hsl(258, 80%, 25%)  
hsl(258, 100%, 25%)  

#2f146c Color Usage In CSS

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