#040004
Closest named color: Black (#000000). oklch(7.5% 0.034 328.4), rgb(4, 0, 4).
Aa
White text reads best on this color (20.85:1).
About this color
#040004 is a very dark, muted purple. In OKLCH its lightness is 7%, its chroma 0.034 and its hue 328°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Black (#000000), ΔE 0.082 away. White text reads best on it, at 20.85:1.
| Hue family | Purples |
| Lightness | very dark (7%) |
| Chroma | muted (0.034) |
| Temperature | in between |
| Nearest name | Black (#000000) |
| Black text | 1.00:1 |
| White text | 20.85:1 |
Values
| HEX | #040004 |
| RGB | rgb(4, 0, 4) |
| HSL | hsl(300, 100%, 1%) |
| OKLCH | oklch(7.5% 0.034 328.4) |
Contrast
WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #040004 | 20.85:1 | AAA | Lc -107.9 | Preferred for body text |
| Black text on #040004 | 1.00:1 | Fails | Lc 0.0 | Not readable |
| #040004 text on white | 20.85:1 | AAA | Lc 106.0 | Preferred for body text |
| #040004 text on black | 1.00:1 | Fails | Lc 0.0 | Not readable |
Tints and shades
A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 950.
-
Step 50
50
#F8F4F7
oklch(97.1% 0.006 334)
-
Step 100
100
#EEE7EE
oklch(93.5% 0.012 325.7)
-
Step 200
200
#E2D4E1
oklch(88.5% 0.023 328)
-
Step 300
300
#D0B8CE
oklch(81% 0.04 328.6)
-
Step 400
400
#B892B5
oklch(70.6% 0.066 328.8)
-
Step 500
500
#A577A3
oklch(63% 0.084 328)
-
Step 600
600
#90608E
oklch(55.7% 0.09 328.1)
-
Step 700
700
#7B4F79
oklch(49.2% 0.084 328.3)
-
Step 800
800
#644162
oklch(42.8% 0.069 328.7)
-
Step 900
900
#513750
oklch(37.6% 0.054 327.9)
-
Step 950
950 (this color)
#040004
oklch(7.5% 0.034 328.4)
#040004 with color blindness
Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #000104 | 0.036 |
| Deuteranopia (no green cones) | #010104 | 0.026 |
| Tritanopia (no blue cones) | #040001 | 0.019 |
| Achromatopsia (no color) | #010101 | 0.035 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #040004
#040004
oklch(7.5% 0.034 328.4)
- #000200
#000200
oklch(7.3% 0.025 142.5)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #040004, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Black #000000 ΔE 0.082
- Almost Black #070D0D ΔE 0.088
- Very Dark Brown #1D0200 ΔE 0.092
- Midnight #03012D ΔE 0.101
- Dark Navy Blue #00022E ΔE 0.106
- Rich Navy #001219 ΔE 0.108
- Very Dark Blue #000133 ΔE 0.115
- Dark Navy #000435 ΔE 0.121
Use #040004 in your product
Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.