#040C1F
Closest named color: Rich Navy (#001219). oklch(15.8% 0.043 262.4), rgb(4, 12, 31).
Aa
White text reads best on this color (19.48:1).
About this color
#040C1F is a very dark, muted blue. In OKLCH its lightness is 16%, its chroma 0.043 and its hue 262°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Navy (#001219), ΔE 0.029 away. White text reads best on it, at 19.48:1.
| Hue family | Blues |
| Lightness | very dark (16%) |
| Chroma | muted (0.043) |
| Temperature | cool |
| Nearest name | Rich Navy (#001219) |
| Black text | 1.07:1 |
| White text | 19.48:1 |
Values
| HEX | #040C1F |
| RGB | rgb(4, 12, 31) |
| HSL | hsl(222, 77%, 7%) |
| OKLCH | oklch(15.8% 0.043 262.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 #040C1F | 19.48:1 | AAA | Lc -107.6 | Preferred for body text |
| Black text on #040C1F | 1.07:1 | Fails | Lc 0.0 | Not readable |
| #040C1F text on white | 19.48:1 | AAA | Lc 105.6 | Preferred for body text |
| #040C1F text on black | 1.07: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
#F3F5FA
oklch(97% 0.007 268.5)
-
Step 100
100
#E5EAF4
oklch(93.6% 0.015 264.5)
-
Step 200
200
#CFDAEC
oklch(88.5% 0.028 260.3)
-
Step 300
300
#AFC1E2
oklch(80.8% 0.051 262.6)
-
Step 400
400
#85A1D4
oklch(70.7% 0.081 262.2)
-
Step 500
500
#6789C8
oklch(63.1% 0.103 262.1)
-
Step 600
600
#4F72B5
oklch(55.7% 0.112 262.4)
-
Step 700
700
#3F5F9C
oklch(49.1% 0.105 262.3)
-
Step 800
800
#344E7E
oklch(42.7% 0.086 261.8)
-
Step 900
900
#2E4166
oklch(37.7% 0.068 262.8)
-
Step 950
950 (this color)
#040C1F
oklch(15.8% 0.043 262.4)
#040C1F 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) | #040E20 | 0.007 |
| Deuteranopia (no green cones) | #020B1F | 0.007 |
| Tritanopia (no blue cones) | #001013 | 0.035 |
| Achromatopsia (no color) | #0D0D0D | 0.043 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #040C1F
#040C1F
oklch(15.8% 0.043 262.4)
- #140B00
#140B00
oklch(15.8% 0.033 80.4)
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 #040C1F, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Rich Navy #001219 ΔE 0.029
- Almost Black #070D0D ΔE 0.040
- Midnight #03012D ΔE 0.049
- Dark Navy Blue #00022E ΔE 0.049
- Dark Navy #000435 ΔE 0.053
- Very Dark Blue #000133 ΔE 0.057
- Rich Black #0D1B2A ΔE 0.060
- Navy Blue #001146 ΔE 0.079
Use #040C1F 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.