#1f024a
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 | #1f024a | |
| RGB | rgb(31 2 74) | |
| HSL | hsl(264.17 94.74% 14.9%) | |
| OKLCH | oklch(0.22 0.12 291.97) | |
| CMYK | cmyk(58.11% 97.3% 0% 70.98%) | |
| Android | #ff1f024a |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
18.01:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.16: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="#1f024a"
Gradient stop
<stop stop-color="#1f024a"/>
CSS variable + fill
:root { --c: #1f024a; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #1f024a; background-color: #1f024a; bg-[#1f024a]