#040F2F
Closest named color: Dark Navy (#000435). oklch(18.2% 0.067 264.4), rgb(4, 15, 47).
Aa
White text reads best on this color (18.84:1).
About this color
#040F2F is a very dark, muted blue. In OKLCH its lightness is 18%, its chroma 0.067 and its hue 264°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Navy (#000435), ΔE 0.037 away. White text reads best on it, at 18.84:1.
| Hue family | Blues |
| Lightness | very dark (18%) |
| Chroma | muted (0.067) |
| Temperature | cool |
| Nearest name | Dark Navy (#000435) |
| Black text | 1.11:1 |
| White text | 18.84:1 |
Values
| HEX | #040F2F |
| RGB | rgb(4, 15, 47) |
| HSL | hsl(225, 84%, 10%) |
| OKLCH | oklch(18.2% 0.067 264.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 #040F2F | 18.84:1 | AAA | Lc -107.2 | Preferred for body text |
| Black text on #040F2F | 1.11:1 | Fails | Lc 0.0 | Not readable |
| #040F2F text on white | 18.84:1 | AAA | Lc 105.1 | Preferred for body text |
| #040F2F text on black | 1.11: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
#F2F6FD
oklch(97.2% 0.01 261.8)
-
Step 100
100
#E2EAFA
oklch(93.6% 0.023 264.5)
-
Step 200
200
#CBD9F7
oklch(88.4% 0.044 265.6)
-
Step 300
300
#A7C1F5
oklch(81% 0.079 264)
-
Step 400
400
#799EEF
oklch(70.6% 0.126 264.7)
-
Step 500
500
#5784EA
oklch(63.1% 0.161 264.4)
-
Step 600
600
#3D6BD8
oklch(55.6% 0.175 264.2)
-
Step 700
700
#3059BC
oklch(49.2% 0.163 264.3)
-
Step 800
800
#284998
oklch(42.7% 0.135 264.3)
-
Step 900
900
#243E79
oklch(37.7% 0.106 264.1)
-
Step 950
950 (this color)
#040F2F
oklch(18.2% 0.067 264.4)
#040F2F 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) | #001330 | 0.013 |
| Deuteranopia (no green cones) | #000F2E | 0.008 |
| Tritanopia (no blue cones) | #00171D | 0.051 |
| Achromatopsia (no color) | #111111 | 0.067 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #040F2F
#040F2F
oklch(18.2% 0.067 264.4)
- #1A1000
#1A1000
oklch(18.2% 0.037 82.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 #040F2F, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Navy #000435 ΔE 0.037
- Navy Blue #001146 ΔE 0.045
- Dark Navy Blue #00022E ΔE 0.046
- Midnight #03012D ΔE 0.046
- Very Dark Blue #000133 ΔE 0.047
- Rich Black #0D1B2A ΔE 0.048
- Rich Navy #001219 ΔE 0.050
- Night Blue #040348 ΔE 0.054
Use #040F2F 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.