#298cd7 Color
Color Codes | |
---|---|
Hex Code | #298cd7 |
RGB Code | rgb(41, 140, 215) |
HSL Code | hsl(206, 69%, 50%) |
#298cd7 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(41, 140, 215); }
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(206, 69%, 50%); }
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 #298cd7
RGB Code | Hex Code | Preview |
---|---|---|
rgb(41, 140, 215, 10%) | #298cd71a | |
rgb(41, 140, 215, 20%) | #298cd733 | |
rgb(41, 140, 215, 40%) | #298cd74C | |
rgb(41, 140, 215, 60%) | #298cd799 | |
rgb(41, 140, 215, 80%) | #298cd7CC | |
rgb(41, 140, 215, 100%) | #298cd7FF |
Saturated and desaturated colors of #298cd7
HSL Code | Preview |
---|---|
hsl(206, 10%, 50%) | |
hsl(206, 20%, 50%) | |
hsl(206, 40%, 50%) | |
hsl(206, 60%, 50%) | |
hsl(206, 80%, 50%) | |
hsl(206, 100%, 50%) |
#298cd7 Color Usage In CSS
body { color: #298cd7; } p { color: rgb(41, 140, 215); } header { border-bottom:1px solid #298cd7; }