Random Color Generator

#3a107a Color

Color Codes
Hex Code #3a107a
RGB Code rgb(58, 16, 122)
HSL Code hsl(264, 77%, 27%)

#3a107a Color Syntax

rgb()

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

 main {
    background-color: rgb(58, 16, 122);
   }

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(264, 77%, 27%);
  }

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 #3a107a

RGB Code Hex Code Preview
rgb(58, 16, 122, 10%) #3a107a1a  
rgb(58, 16, 122, 20%) #3a107a33  
rgb(58, 16, 122, 40%) #3a107a4C  
rgb(58, 16, 122, 60%) #3a107a99  
rgb(58, 16, 122, 80%) #3a107aCC  
rgb(58, 16, 122, 100%) #3a107aFF  

Saturated and desaturated colors of #3a107a

HSL Code Preview
hsl(264, 10%, 27%)  
hsl(264, 20%, 27%)  
hsl(264, 40%, 27%)  
hsl(264, 60%, 27%)  
hsl(264, 80%, 27%)  
hsl(264, 100%, 27%)  

#3a107a Color Usage In CSS

 body {
    color: #3a107a;
    }
 p {
    color: rgb(58, 16, 122);
    }
 header {
    border-bottom:1px solid #3a107a;
    }
Recent Random Colors