#15428b Color
Color Codes | |
---|---|
Hex Code | #15428b |
RGB Code | rgb(21, 66, 139) |
HSL Code | hsl(217, 74%, 31%) |
#15428b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(21, 66, 139); }
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, 74%, 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 #15428b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(21, 66, 139, 10%) | #15428b1a | |
rgb(21, 66, 139, 20%) | #15428b33 | |
rgb(21, 66, 139, 40%) | #15428b4C | |
rgb(21, 66, 139, 60%) | #15428b99 | |
rgb(21, 66, 139, 80%) | #15428bCC | |
rgb(21, 66, 139, 100%) | #15428bFF |
Saturated and desaturated colors of #15428b
HSL Code | Preview |
---|---|
hsl(217, 10%, 31%) | |
hsl(217, 20%, 31%) | |
hsl(217, 40%, 31%) | |
hsl(217, 60%, 31%) | |
hsl(217, 80%, 31%) | |
hsl(217, 100%, 31%) |
#15428b Color Usage In CSS
body { color: #15428b; } p { color: rgb(21, 66, 139); } header { border-bottom:1px solid #15428b; }