#040508
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 | #040508 | |
| RGB | rgb(4 5 8) | |
| HSL | hsl(225 33.33% 2.35%) | |
| OKLCH | oklch(0.12 0.01 267.45) | |
| CMYK | cmyk(50% 37.5% 0% 96.86%) | |
| Android | #ff040508 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
20.38:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.03: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="#040508"
Gradient stop
<stop stop-color="#040508"/>
CSS variable + fill
:root { --c: #040508; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #040508; background-color: #040508; bg-[#040508]