#2870cc
Codes, contrast, shades, harmonies and SVG snippets for this color.
- Codes
- Names & lists
- Contrast
- Shades & tints
- Harmonies
- Color-blindness
- SVG snippets
- CSS
- Related colors
Codes
| Format | Value | |
|---|---|---|
| HEX | #2870cc | |
| RGB | rgb(40 112 204) | |
| HSL | hsl(213.66 67.21% 47.84%) | |
| OKLCH | oklch(0.55 0.16 256.45) | |
| CMYK | cmyk(80.39% 45.1% 0% 20%) | |
| Android | #ff2870cc |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.90:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.27:1
Fail AA normal text
Pass AA large text
On black #000000 · Best text #ffffff
Shades & tints
OKLCH lightness, mixed toward white then black.
Harmonies
Complementary
Analogous
Triadic
Color-blindness
Normal
Protanopia
Deuteranopia
Tritanopia
SVG snippets
fill
fill="#2870cc"
Gradient stop
<stop stop-color="#2870cc"/>
CSS variable + fill
:root { --c: #2870cc; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #2870cc; background-color: #2870cc; bg-[#2870cc]