#397a9c Color
Color Codes | |
---|---|
Hex Code | #397a9c |
RGB Code | rgb(57, 122, 156) |
HSL Code | hsl(201, 46%, 42%) |
#397a9c Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(57, 122, 156); }
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(201, 46%, 42%); }
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 #397a9c
RGB Code | Hex Code | Preview |
---|---|---|
rgb(57, 122, 156, 10%) | #397a9c1a | |
rgb(57, 122, 156, 20%) | #397a9c33 | |
rgb(57, 122, 156, 40%) | #397a9c4C | |
rgb(57, 122, 156, 60%) | #397a9c99 | |
rgb(57, 122, 156, 80%) | #397a9cCC | |
rgb(57, 122, 156, 100%) | #397a9cFF |
Saturated and desaturated colors of #397a9c
HSL Code | Preview |
---|---|
hsl(201, 10%, 42%) | |
hsl(201, 20%, 42%) | |
hsl(201, 40%, 42%) | |
hsl(201, 60%, 42%) | |
hsl(201, 80%, 42%) | |
hsl(201, 100%, 42%) |
#397a9c Color Usage In CSS
body { color: #397a9c; } p { color: rgb(57, 122, 156); } header { border-bottom:1px solid #397a9c; }