#040B23
Closest named color: Rich Navy (#001219). oklch(15.9% 0.052 265.8), rgb(4, 11, 35).
Aa
White text reads best on this color (19.49:1).
About this color
#040B23 is a very dark, muted blue. In OKLCH its lightness is 16%, its chroma 0.052 and its hue 266°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Navy (#001219), ΔE 0.037 away. White text reads best on it, at 19.49:1.
| Hue family | Blues |
| Lightness | very dark (16%) |
| Chroma | muted (0.052) |
| Temperature | cool |
| Nearest name | Rich Navy (#001219) |
| Black text | 1.07:1 |
| White text | 19.49:1 |
Values
| HEX | #040B23 |
| RGB | rgb(4, 11, 35) |
| HSL | hsl(226, 79%, 8%) |
| OKLCH | oklch(15.9% 0.052 265.8) |
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 #040B23 | 19.49:1 | AAA | Lc -107.5 | Preferred for body text |
| Black text on #040B23 | 1.07:1 | Fails | Lc 0.0 | Not readable |
| #040B23 text on white | 19.49:1 | AAA | Lc 105.6 | Preferred for body text |
| #040B23 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
#F3F5FB
oklch(97% 0.008 271.3)
-
Step 100
100
#E4EAF6
oklch(93.6% 0.017 264.5)
-
Step 200
200
#CED9F1
oklch(88.4% 0.035 266)
-
Step 300
300
#AEC0E9
oklch(80.8% 0.061 266.4)
-
Step 400
400
#849FDF
oklch(70.7% 0.099 266.4)
-
Step 500
500
#6586D5
oklch(63% 0.125 265.8)
-
Step 600
600
#4D6EC3
oklch(55.5% 0.137 266.1)
-
Step 700
700
#3E5CA8
oklch(49.1% 0.127 265.7)
-
Step 800
800
#334B88
oklch(42.6% 0.105 265.9)
-
Step 900
900
#2D3F6D
oklch(37.6% 0.082 266.4)
-
Step 950
950 (this color)
#040B23
oklch(15.9% 0.052 265.8)
#040B23 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) | #010E24 | 0.011 |
| Deuteranopia (no green cones) | #000B23 | 0.010 |
| Tritanopia (no blue cones) | #001115 | 0.042 |
| Achromatopsia (no color) | #0D0D0D | 0.052 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #040B23
#040B23
oklch(15.9% 0.052 265.8)
- #130C00
#130C00
oklch(15.9% 0.033 87.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 #040B23, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Rich Navy #001219 ΔE 0.037
- Midnight #03012D ΔE 0.040
- Dark Navy Blue #00022E ΔE 0.041
- Dark Navy #000435 ΔE 0.044
- Very Dark Blue #000133 ΔE 0.048
- Almost Black #070D0D ΔE 0.050
- Rich Black #0D1B2A ΔE 0.061
- Navy Blue #001146 ΔE 0.072
Use #040B23 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.