#340f4d
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 | #340f4d | |
| RGB | rgb(52 15 77) | |
| HSL | hsl(275.81 67.39% 18.04%) | |
| OKLCH | oklch(0.27 0.11 307.75) | |
| CMYK | cmyk(32.47% 80.52% 0% 69.8%) | |
| Android | #ff340f4d |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
15.89:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.32: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="#340f4d"
Gradient stop
<stop stop-color="#340f4d"/>
CSS variable + fill
:root { --c: #340f4d; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #340f4d; background-color: #340f4d; bg-[#340f4d]