#021f3a
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 | #021f3a | |
| RGB | rgb(2 31 58) | |
| HSL | hsl(208.93 93.33% 11.76%) | |
| OKLCH | oklch(0.23 0.06 249.88) | |
| CMYK | cmyk(96.55% 46.55% 0% 77.25%) | |
| Android | #ff021f3a |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
16.67:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.25: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="#021f3a"
Gradient stop
<stop stop-color="#021f3a"/>
CSS variable + fill
:root { --c: #021f3a; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #021f3a; background-color: #021f3a; bg-[#021f3a]