Deep Blue #040273
Deep Blue is a dark, vivid blue with hex code #040273 and RGB rgb(4, 2, 115).
Aa
White text reads best on this color (16.64:1).
About this color
#040273 is a dark, vivid blue. In OKLCH its lightness is 25%, its chroma 0.171 and its hue 266°. Its hue sits on the cool side of the wheel. It is the named color Deep Blue. White text reads best on it, at 16.64:1.
| Hue family | Blues |
| Lightness | dark (25%) |
| Chroma | vivid (0.171) |
| Temperature | cool |
| Nearest name | Deep Blue |
| Black text | 1.26:1 |
| White text | 16.64:1 |
Colors that go with Deep Blue
Matches found by rotating Deep Blue around the OKLCH hue wheel, each labelled with the closest name in our list.
Complementary
The opposite hue (180°).
Analogous
Neighbouring hues, 30° either side.
Triadic
Three hues spaced 120° apart.
Color palettes with Deep Blue
Curated color palettes that contain a color within ΔE 0.06 (OKLab) of Deep Blue, closest first.
Similar named colors
The eight named colors closest to Deep Blue, with their ΔE distance.
- Dark Royal Blue #02066F ΔE 0.007
- Navy #000080 ΔE 0.024
- Darkblue #030764 ΔE 0.027
- Dark Blue #00008B ΔE 0.044
- Midnight Blue #191970 ΔE 0.047
- Royal #0C1793 ΔE 0.071
- Dark Indigo #1F0954 ΔE 0.073
- Navy Blue #001146 ΔE 0.082
More about Deep Blue
How to make Deep Blue
A starting recipe from common paint colors, found with a spectral paint model (the color mixer’s paint mode). Real pigments vary, so mix a small test batch and adjust.
- 4 parts blue
- 4 parts purple
- 1 part black
Recipe result: #353A69, a difference of ΔE 0.147 from Deep Blue. Deep Blue is more vivid than these paints can mix, so start from a ready-made blue paint and adjust it.
Codes for Deep Blue in every format
| HEX | #040273 |
| RGB | rgb(4, 2, 115) |
| HSL | hsl(241, 97%, 23%) |
| OKLCH | oklch(25.5% 0.171 265.6) |
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 #040273 | 16.64:1 | AAA | Lc -104.7 | Preferred for body text |
| Black text on #040273 | 1.26:1 | Fails | Lc 0.0 | Not readable |
| #040273 text on white | 16.64:1 | AAA | Lc 101.9 | Preferred for body text |
| #040273 text on black | 1.26:1 | Fails | Lc 0.0 | Not readable |
Shades and tints of Deep Blue
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
#F1F6FF
oklch(97.2% 0.013 262.4)
-
Step 100
100
#E0EAFF
oklch(93.6% 0.03 265.3)
-
Step 200
200
#C8D9FF
oklch(88.5% 0.056 266.2)
-
Step 300
300
#A3C0FF
oklch(80.9% 0.095 265.2)
-
Step 400
400
#739CFF
oklch(70.7% 0.152 265.7)
-
Step 500
500
#4F7FFF
oklch(63.1% 0.197 265.6)
-
Step 600
600
#2D5EFF
oklch(55.6% 0.244 265.5)
-
Step 700
700
#1736FF
oklch(49.2% 0.286 265.6)
-
Step 800
800
#1200EA
oklch(42.7% 0.291 265.6)
-
Step 900
900
#0D00C6
oklch(37.6% 0.257 265.6)
-
Step 950
950 (this color)
#040273
oklch(25.5% 0.171 265.6)
Deep Blue 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) | #002476 | 0.057 |
| Deuteranopia (no green cones) | #001871 | 0.029 |
| Tritanopia (no blue cones) | #002D41 | 0.128 |
| Achromatopsia (no color) | #1E1E1E | 0.172 |
Use Deep Blue 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.