#04060F
Closest named color: Almost Black (#070D0D). oklch(12.5% 0.022 269.7), rgb(4, 6, 15).
Aa
White text reads best on this color (20.22:1).
About this color
#04060F is a very dark close to neutral grey. In OKLCH its lightness is 12%, its chroma 0.022. It has too little chroma to lean warm or cool. The nearest named color is Almost Black (#070D0D), ΔE 0.035 away. White text reads best on it, at 20.22:1.
| Hue family | Neutrals |
| Lightness | very dark (12%) |
| Chroma | close to neutral grey (0.022) |
| Temperature | neutral |
| Nearest name | Almost Black (#070D0D) |
| Black text | 1.03:1 |
| White text | 20.22:1 |
Values
| HEX | #04060F |
| RGB | rgb(4, 6, 15) |
| HSL | hsl(229, 58%, 4%) |
| OKLCH | oklch(12.5% 0.022 269.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 #04060F | 20.22:1 | AAA | Lc -107.8 | Preferred for body text |
| Black text on #04060F | 1.03:1 | Fails | Lc 0.0 | Not readable |
| #04060F text on white | 20.22:1 | AAA | Lc 106.0 | Preferred for body text |
| #04060F text on black | 1.03: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
#F4F5F8
oklch(97% 0.004 271.4)
-
Step 100
100
#E8EAEF
oklch(93.7% 0.007 268.5)
-
Step 200
200
#D5D9E3
oklch(88.5% 0.014 268.5)
-
Step 300
300
#BAC0D2
oklch(80.9% 0.026 271.1)
-
Step 400
400
#96A0BC
oklch(70.7% 0.043 269.8)
-
Step 500
500
#7C88AB
oklch(63% 0.055 270)
-
Step 600
600
#657296
oklch(55.5% 0.058 269.1)
-
Step 700
700
#545F80
oklch(49% 0.055 270)
-
Step 800
800
#454E68
oklch(42.7% 0.045 269.6)
-
Step 900
900
#3A4155
oklch(37.7% 0.036 269.6)
-
Step 950
950 (this color)
#04060F
oklch(12.5% 0.022 269.7)
#04060F 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) | #04070F | 0.005 |
| Deuteranopia (no green cones) | #03060F | 0.003 |
| Tritanopia (no blue cones) | #020809 | 0.021 |
| Achromatopsia (no color) | #060606 | 0.023 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #04060F
#04060F
oklch(12.5% 0.022 269.7)
- #090601
#090601
oklch(12.4% 0.02 89.8)
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 #04060F, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Almost Black #070D0D ΔE 0.035
- Rich Navy #001219 ΔE 0.050
- Midnight #03012D ΔE 0.068
- Dark Navy Blue #00022E ΔE 0.070
- Very Dark Brown #1D0200 ΔE 0.074
- Very Dark Blue #000133 ΔE 0.080
- Dark Navy #000435 ΔE 0.081
- Rich Black #0D1B2A ΔE 0.094
Use #04060F 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.