#21152c
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 | #21152c | |
| RGB | rgb(33 21 44) | |
| HSL | hsl(271.3 35.38% 12.75%) | |
| OKLCH | oklch(0.22 0.05 307.07) | |
| CMYK | cmyk(25% 52.27% 0% 82.75%) | |
| Android | #ff21152c |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
17.37:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.20: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="#21152c"
Gradient stop
<stop stop-color="#21152c"/>
CSS variable + fill
:root { --c: #21152c; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #21152c; background-color: #21152c; bg-[#21152c]