#40189a
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 | #40189a | |
| RGB | rgb(64 24 154) | |
| HSL | hsl(258.46 73.03% 34.9%) | |
| OKLCH | oklch(0.37 0.19 286.67) | |
| CMYK | cmyk(58.44% 84.42% 0% 39.61%) | |
| Android | #ff40189a |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
11.56:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.81: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="#40189a"
Gradient stop
<stop stop-color="#40189a"/>
CSS variable + fill
:root { --c: #40189a; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #40189a; background-color: #40189a; bg-[#40189a]