#04072f
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 | #04072f | |
| RGB | rgb(4 7 47) | |
| HSL | hsl(235.81 84.31% 10%) | |
| OKLCH | oklch(0.16 0.08 269.62) | |
| CMYK | cmyk(91.49% 85.11% 0% 81.57%) | |
| Android | #ff04072f |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
19.50:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.07: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="#04072f"
Gradient stop
<stop stop-color="#04072f"/>
CSS variable + fill
:root { --c: #04072f; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #04072f; background-color: #04072f; bg-[#04072f]