#040D1F
Closest named color: Rich Navy (#001219). oklch(16.1% 0.041 260.3), rgb(4, 13, 31).
Aa
White text reads best on this color (19.39:1).
About this color
#040D1F is a very dark, muted blue. In OKLCH its lightness is 16%, its chroma 0.041 and its hue 260°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Navy (#001219), ΔE 0.026 away. White text reads best on it, at 19.39:1.
| Hue family | Blues |
| Lightness | very dark (16%) |
| Chroma | muted (0.041) |
| Temperature | cool |
| Nearest name | Rich Navy (#001219) |
| Black text | 1.08:1 |
| White text | 19.39:1 |
Values
| HEX | #040D1F |
| RGB | rgb(4, 13, 31) |
| HSL | hsl(220, 77%, 7%) |
| OKLCH | oklch(16.1% 0.041 260.3) |
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 #040D1F | 19.39:1 | AAA | Lc -107.5 | Preferred for body text |
| Black text on #040D1F | 1.08:1 | Fails | Lc 0.0 | Not readable |
| #040D1F text on white | 19.39:1 | AAA | Lc 105.6 | Preferred for body text |
| #040D1F text on black | 1.08: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
#F3F6FA
oklch(97.2% 0.006 255.5)
-
Step 100
100
#E4EAF4
oklch(93.5% 0.015 260.7)
-
Step 200
200
#CFDAEC
oklch(88.5% 0.028 260.3)
-
Step 300
300
#AFC2E1
oklch(81% 0.049 260.2)
-
Step 400
400
#84A2D2
oklch(70.8% 0.078 259.7)
-
Step 500
500
#668AC6
oklch(63.2% 0.1 260.3)
-
Step 600
600
#4D73B3
oklch(55.7% 0.109 260.3)
-
Step 700
700
#3E609A
oklch(49.1% 0.102 260.5)
-
Step 800
800
#334F7D
oklch(42.8% 0.084 259.9)
-
Step 900
900
#2D4264
oklch(37.8% 0.064 259.7)
-
Step 950
950 (this color)
#040D1F
oklch(16.1% 0.041 260.3)
#040D1F 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) | #050F20 | 0.008 |
| Deuteranopia (no green cones) | #030C1F | 0.005 |
| Tritanopia (no blue cones) | #001114 | 0.033 |
| Achromatopsia (no color) | #0D0D0D | 0.041 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #040D1F
#040D1F
oklch(16.1% 0.041 260.3)
- #150C00
#150C00
oklch(16.3% 0.034 81.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 #040D1F, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Rich Navy #001219 ΔE 0.026
- Almost Black #070D0D ΔE 0.039
- Midnight #03012D ΔE 0.052
- Dark Navy Blue #00022E ΔE 0.052
- Dark Navy #000435 ΔE 0.054
- Rich Black #0D1B2A ΔE 0.057
- Very Dark Blue #000133 ΔE 0.059
- Navy Blue #001146 ΔE 0.078
Use #040D1F 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.