#340258
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 | #340258 | |
| RGB | rgb(52 2 88) | |
| HSL | hsl(274.88 95.56% 17.65%) | |
| OKLCH | oklch(0.26 0.13 303.78) | |
| CMYK | cmyk(40.91% 97.73% 0% 65.49%) | |
| Android | #ff340258 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
16.20:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.29: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="#340258"
Gradient stop
<stop stop-color="#340258"/>
CSS variable + fill
:root { --c: #340258; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #340258; background-color: #340258; bg-[#340258]