#31054d
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 | #31054d | |
| RGB | rgb(49 5 77) | |
| HSL | hsl(276.67 87.8% 16.08%) | |
| OKLCH | oklch(0.25 0.12 306.82) | |
| CMYK | cmyk(36.36% 93.51% 0% 69.8%) | |
| Android | #ff31054d |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
16.67:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.25: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="#31054d"
Gradient stop
<stop stop-color="#31054d"/>
CSS variable + fill
:root { --c: #31054d; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #31054d; background-color: #31054d; bg-[#31054d]