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 familyBlues
Lightnessdark (25%)
Chromavivid (0.171)
Temperaturecool
Nearest nameDeep Blue
Black text1.26:1
White text16.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.

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.

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.

What colors make blue? | Color mixing chart

Codes for Deep Blue in every format

HEX#040273
RGBrgb(4, 2, 115)
HSLhsl(241, 97%, 23%)
OKLCHoklch(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.

PairWCAG 2ResultAPCAAPCA 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.

  1. Step 50

    50

    #F1F6FF

    oklch(97.2% 0.013 262.4)

  2. Step 100

    100

    #E0EAFF

    oklch(93.6% 0.03 265.3)

  3. Step 200

    200

    #C8D9FF

    oklch(88.5% 0.056 266.2)

  4. Step 300

    300

    #A3C0FF

    oklch(80.9% 0.095 265.2)

  5. Step 400

    400

    #739CFF

    oklch(70.7% 0.152 265.7)

  6. Step 500

    500

    #4F7FFF

    oklch(63.1% 0.197 265.6)

  7. Step 600

    600

    #2D5EFF

    oklch(55.6% 0.244 265.5)

  8. Step 700

    700

    #1736FF

    oklch(49.2% 0.286 265.6)

  9. Step 800

    800

    #1200EA

    oklch(42.7% 0.291 265.6)

  10. Step 900

    900

    #0D00C6

    oklch(37.6% 0.257 265.6)

  11. Step 950

    950 (this color)

    #040273

    oklch(25.5% 0.171 265.6)

Export this scale for Tailwind in the Tailwind colors tool

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.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#0024760.057
Deuteranopia (no green cones)#0018710.029
Tritanopia (no blue cones)#002D410.128
Achromatopsia (no color)#1E1E1E0.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.