Random Color Generator

#345d9d Color

Color Codes
Hex Code #345d9d
RGB Code rgb(52, 93, 157)
HSL Code hsl(217, 50%, 41%)

#345d9d Color Syntax

rgb()

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

 main {
    background-color: rgb(52, 93, 157);
   }

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(217, 50%, 41%);
  }

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 #345d9d

RGB Code Hex Code Preview
rgb(52, 93, 157, 10%) #345d9d1a  
rgb(52, 93, 157, 20%) #345d9d33  
rgb(52, 93, 157, 40%) #345d9d4C  
rgb(52, 93, 157, 60%) #345d9d99  
rgb(52, 93, 157, 80%) #345d9dCC  
rgb(52, 93, 157, 100%) #345d9dFF  

Saturated and desaturated colors of #345d9d

HSL Code Preview
hsl(217, 10%, 41%)  
hsl(217, 20%, 41%)  
hsl(217, 40%, 41%)  
hsl(217, 60%, 41%)  
hsl(217, 80%, 41%)  
hsl(217, 100%, 41%)  

#345d9d Color Usage In CSS

 body {
    color: #345d9d;
    }
 p {
    color: rgb(52, 93, 157);
    }
 header {
    border-bottom:1px solid #345d9d;
    }
Recent Random Colors