#342a6d
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 | #342a6d | |
| RGB | rgb(52 42 109) | |
| HSL | hsl(248.96 44.37% 29.61%) | |
| OKLCH | oklch(0.34 0.11 285.53) | |
| CMYK | cmyk(52.29% 61.47% 0% 57.25%) | |
| Android | #ff342a6d |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
12.36:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.69: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="#342a6d"
Gradient stop
<stop stop-color="#342a6d"/>
CSS variable + fill
:root { --c: #342a6d; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #342a6d; background-color: #342a6d; bg-[#342a6d]