#04173D

Closest named color: Navy Blue (#001146). oklch(21.7% 0.078 261.3), rgb(4, 23, 61).

Aa

White text reads best on this color (17.57:1).

About this color

#04173D is a very dark, moderately saturated blue. In OKLCH its lightness is 22%, its chroma 0.078 and its hue 261°. Its hue sits on the cool side of the wheel. The nearest named color is Navy Blue (#001146), ΔE 0.025 away. White text reads best on it, at 17.57:1.

Hue familyBlues
Lightnessvery dark (22%)
Chromamoderately saturated (0.078)
Temperaturecool
Nearest nameNavy Blue (#001146)
Black text1.19:1
White text17.57:1

Values

HEX#04173D
RGBrgb(4, 23, 61)
HSLhsl(220, 88%, 13%)
OKLCHoklch(21.7% 0.078 261.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.

PairWCAG 2ResultAPCAAPCA guidance
White text on #04173D 17.57:1 AAA Lc -106.4 Preferred for body text
Black text on #04173D 1.19:1 Fails Lc 0.0 Not readable
#04173D text on white 17.57:1 AAA Lc 104.1 Preferred for body text
#04173D text on black 1.19: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.

  1. Step 50

    50

    #F1F6FE

    oklch(97.2% 0.012 259.8)

  2. Step 100

    100

    #E0EAFC

    oklch(93.5% 0.027 262.3)

  3. Step 200

    200

    #C7DAFC

    oklch(88.5% 0.051 262.1)

  4. Step 300

    300

    #9FC1FD

    oklch(80.8% 0.093 261.6)

  5. Step 400

    400

    #6B9FFC

    oklch(70.7% 0.148 261.3)

  6. Step 500

    500

    #4383F9

    oklch(63% 0.188 261.4)

  7. Step 600

    600

    #2469E8

    oklch(55.5% 0.205 261.4)

  8. Step 700

    700

    #1757CA

    oklch(49.2% 0.19 261.2)

  9. Step 800

    800

    #1648A3

    oklch(42.8% 0.157 261.2)

  10. Step 900

    900

    #183D81

    oklch(37.6% 0.123 261.3)

  11. Step 950

    950 (this color)

    #04173D

    oklch(21.7% 0.078 261.3)

Export this scale for Tailwind in the Tailwind colors tool

#04173D 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)#001C3E0.016
Deuteranopia (no green cones)#00173C0.006
Tritanopia (no blue cones)#0020270.058
Achromatopsia (no color)#1919190.078

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #04173D

    #04173D

    oklch(21.7% 0.078 261.3)

  • #241700

    #241700

    oklch(21.6% 0.045 81.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #04173D

    #04173D

    oklch(21.7% 0.078 261.3)

  • #001D2A

    #001D2A

    oklch(21.6% 0.043 230.8)

  • #1C103A

    #1C103A

    oklch(21.8% 0.077 291.9)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #04173D

    #04173D

    oklch(21.7% 0.078 261.3)

  • #2D1000

    #2D1000

    oklch(21.5% 0.056 50.9)

  • #1B1C00

    #1B1C00

    oklch(21.8% 0.048 111.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #04173D

    #04173D

    oklch(21.7% 0.078 261.3)

  • #360409

    #360409

    oklch(21.7% 0.078 20.8)

  • #022100

    #022100

    oklch(21.6% 0.071 141.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #04173D

    #04173D

    oklch(21.7% 0.078 261.3)

  • #32051E

    #32051E

    oklch(21.7% 0.078 351.2)

  • #241700

    #241700

    oklch(21.6% 0.045 81.1)

  • #002017

    #002017

    oklch(21.7% 0.043 170.7)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #04173D, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #04173D 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.