#331d6a
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 | #331d6a | |
| RGB | rgb(51 29 106) | |
| HSL | hsl(257.14 57.04% 26.47%) | |
| OKLCH | oklch(0.31 0.13 290.19) | |
| CMYK | cmyk(51.89% 72.64% 0% 58.43%) | |
| Android | #ff331d6a |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
13.77:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.52: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="#331d6a"
Gradient stop
<stop stop-color="#331d6a"/>
CSS variable + fill
:root { --c: #331d6a; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #331d6a; background-color: #331d6a; bg-[#331d6a]