#2f218f
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 | #2f218f | |
| RGB | rgb(47 33 143) | |
| HSL | hsl(247.64 62.5% 34.51%) | |
| OKLCH | oklch(0.35 0.17 278.73) | |
| CMYK | cmyk(67.13% 76.92% 0% 43.92%) | |
| Android | #ff2f218f |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
12.10:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.73:1
Fail AA normal text
Fail 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="#2f218f"
Gradient stop
<stop stop-color="#2f218f"/>
CSS variable + fill
:root { --c: #2f218f; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #2f218f; background-color: #2f218f; bg-[#2f218f]