#040C0C
Closest named color: Almost Black (#070D0D). oklch(14.5% 0.014 195.7), rgb(4, 12, 12).
Aa
White text reads best on this color (19.75:1).
About this color
#040C0C is a very dark close to neutral grey. In OKLCH its lightness is 14%, its chroma 0.014. It has too little chroma to lean warm or cool. The nearest named color is Almost Black (#070D0D), ΔE 0.009 away. White text reads best on it, at 19.75:1.
| Hue family | Neutrals |
| Lightness | very dark (14%) |
| Chroma | close to neutral grey (0.014) |
| Temperature | neutral |
| Nearest name | Almost Black (#070D0D) |
| Black text | 1.06:1 |
| White text | 19.75:1 |
Values
| HEX | #040C0C |
| RGB | rgb(4, 12, 12) |
| HSL | hsl(180, 50%, 3%) |
| OKLCH | oklch(14.5% 0.014 195.7) |
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 #040C0C | 19.75:1 | AAA | Lc -107.7 | Preferred for body text |
| Black text on #040C0C | 1.06:1 | Fails | Lc 0.0 | Not readable |
| #040C0C text on white | 19.75:1 | AAA | Lc 105.8 | Preferred for body text |
| #040C0C text on black | 1.06: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
#F4F6F6
oklch(97.2% 0.002 197.1)
-
Step 100
100
#E6EBEB
oklch(93.6% 0.005 197.1)
-
Step 200
200
#D2DBDB
oklch(88.5% 0.01 197)
-
Step 300
300
#B5C4C4
oklch(80.9% 0.016 196.8)
-
Step 400
400
#8EA6A6
oklch(70.7% 0.027 196.6)
-
Step 500
500
#719090
oklch(63% 0.035 196.3)
-
Step 600
600
#597B7A
oklch(55.7% 0.039 193.8)
-
Step 700
700
#496767
oklch(49% 0.035 196.1)
-
Step 800
800
#3C5454
oklch(42.6% 0.029 196.1)
-
Step 900
900
#344645
oklch(37.8% 0.023 192)
-
Step 950
950 (this color)
#040C0C
oklch(14.5% 0.014 195.7)
#040C0C 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) | #0B0B0C | 0.015 |
| Deuteranopia (no green cones) | #090A0C | 0.013 |
| Tritanopia (no blue cones) | #020D0C | 0.006 |
| Achromatopsia (no color) | #0A0A0A | 0.014 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
This color is close to neutral, so it has no meaningful hue to rotate. Hue harmonies are omitted.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #040C0C, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Almost Black #070D0D ΔE 0.009
- Rich Navy #001219 ΔE 0.031
- Very Dark Brown #1D0200 ΔE 0.068
- Rich Black #0D1B2A ΔE 0.079
- Midnight #03012D ΔE 0.085
- Dark Navy Blue #00022E ΔE 0.086
- Dark Navy #000435 ΔE 0.092
- Very Dark Blue #000133 ΔE 0.094
Use #040C0C 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.