#401b4a
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 | #401b4a | |
| RGB | rgb(64 27 74) | |
| HSL | hsl(287.23 46.53% 19.8%) | |
| OKLCH | oklch(0.3 0.09 318.64) | |
| CMYK | cmyk(13.51% 63.51% 0% 70.98%) | |
| Android | #ff401b4a |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
14.25:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.47: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="#401b4a"
Gradient stop
<stop stop-color="#401b4a"/>
CSS variable + fill
:root { --c: #401b4a; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #401b4a; background-color: #401b4a; bg-[#401b4a]