#040F35
Closest named color: Navy Blue (#001146). oklch(18.9% 0.077 265.3), rgb(4, 15, 53).
Aa
White text reads best on this color (18.66:1).
About this color
#040F35 is a very dark, moderately saturated blue. In OKLCH its lightness is 19%, its chroma 0.077 and its hue 265°. Its hue sits on the cool side of the wheel. The nearest named color is Navy Blue (#001146), ΔE 0.034 away. White text reads best on it, at 18.66:1.
| Hue family | Blues |
| Lightness | very dark (19%) |
| Chroma | moderately saturated (0.077) |
| Temperature | cool |
| Nearest name | Navy Blue (#001146) |
| Black text | 1.12:1 |
| White text | 18.66:1 |
Values
| HEX | #040F35 |
| RGB | rgb(4, 15, 53) |
| HSL | hsl(227, 86%, 11%) |
| OKLCH | oklch(18.9% 0.077 265.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 #040F35 | 18.66:1 | AAA | Lc -107.1 | Preferred for body text |
| Black text on #040F35 | 1.12:1 | Fails | Lc 0.0 | Not readable |
| #040F35 text on white | 18.66:1 | AAA | Lc 105.0 | Preferred for body text |
| #040F35 text on black | 1.12: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
#F1F5FE
oklch(97% 0.013 266.7)
-
Step 100
100
#E1EAFC
oklch(93.6% 0.026 264.4)
-
Step 200
200
#C9D9FB
oklch(88.4% 0.05 265.4)
-
Step 300
300
#A4C0FC
oklch(80.9% 0.091 265)
-
Step 400
400
#749DFB
oklch(70.7% 0.145 265.1)
-
Step 500
500
#5281F8
oklch(63.1% 0.185 265.3)
-
Step 600
600
#3866E7
oklch(55.5% 0.202 265.3)
-
Step 700
700
#2C54C9
oklch(49.1% 0.188 265.5)
-
Step 800
800
#2546A2
oklch(42.8% 0.154 265.3)
-
Step 900
900
#223C81
oklch(37.8% 0.121 265.4)
-
Step 950
950 (this color)
#040F35
oklch(18.9% 0.077 265.3)
#040F35 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) | #001536 | 0.018 |
| Deuteranopia (no green cones) | #001034 | 0.007 |
| Tritanopia (no blue cones) | #001920 | 0.059 |
| Achromatopsia (no color) | #121212 | 0.077 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #040F35
#040F35
oklch(18.9% 0.077 265.3)
- #1B1200
#1B1200
oklch(18.9% 0.039 86.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 #040F35, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Navy Blue #001146 ΔE 0.034
- Dark Navy #000435 ΔE 0.035
- Night Blue #040348 ΔE 0.043
- Very Dark Blue #000133 ΔE 0.046
- Dark Navy Blue #00022E ΔE 0.048
- Midnight #03012D ΔE 0.049
- Rich Black #0D1B2A ΔE 0.052
- Rich Navy #001219 ΔE 0.061
Use #040F35 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.