#272f8b Color
Color Codes | |
---|---|
Hex Code | #272f8b |
RGB Code | rgb(39, 47, 139) |
HSL Code | hsl(235, 56%, 35%) |
#272f8b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(39, 47, 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(235, 56%, 35%); }
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 #272f8b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(39, 47, 139, 10%) | #272f8b1a | |
rgb(39, 47, 139, 20%) | #272f8b33 | |
rgb(39, 47, 139, 40%) | #272f8b4C | |
rgb(39, 47, 139, 60%) | #272f8b99 | |
rgb(39, 47, 139, 80%) | #272f8bCC | |
rgb(39, 47, 139, 100%) | #272f8bFF |
Saturated and desaturated colors of #272f8b
HSL Code | Preview |
---|---|
hsl(235, 10%, 35%) | |
hsl(235, 20%, 35%) | |
hsl(235, 40%, 35%) | |
hsl(235, 60%, 35%) | |
hsl(235, 80%, 35%) | |
hsl(235, 100%, 35%) |
#272f8b Color Usage In CSS
body { color: #272f8b; } p { color: rgb(39, 47, 139); } header { border-bottom:1px solid #272f8b; }