#171F39

Closest named color: Oxford Blue (#1B263B). oklch(24.6% 0.051 269.5), rgb(23, 31, 57).

Aa

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

About this color

#171F39 is a very dark, muted blue. In OKLCH its lightness is 25%, its chroma 0.051 and its hue 269°. Its hue sits on the cool side of the wheel. The nearest named color is Oxford Blue (#1B263B), ΔE 0.025 away. White text reads best on it, at 16.26:1.

Hue familyBlues
Lightnessvery dark (25%)
Chromamuted (0.051)
Temperaturecool
Nearest nameOxford Blue (#1B263B)
Black text1.29:1
White text16.26:1

Values

HEX#171F39
RGBrgb(23, 31, 57)
HSLhsl(226, 43%, 16%)
OKLCHoklch(24.6% 0.051 269.5)

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 #171F39 16.26:1 AAA Lc -105.7 Preferred for body text
Black text on #171F39 1.29:1 Fails Lc 0.0 Not readable
#171F39 text on white 16.26:1 AAA Lc 103.1 Preferred for body text
#171F39 text on black 1.29: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

    #F3F5FB

    oklch(97% 0.008 271.3)

  2. Step 100

    100

    #E5EAF6

    oklch(93.7% 0.017 267.8)

  3. Step 200

    200

    #D0D9F0

    oklch(88.6% 0.033 268.7)

  4. Step 300

    300

    #B1C0E9

    oklch(81% 0.06 269.3)

  5. Step 400

    400

    #889EDD

    oklch(70.7% 0.096 269.1)

  6. Step 500

    500

    #6C85D4

    oklch(63.2% 0.123 269.4)

  7. Step 600

    600

    #546DC1

    oklch(55.6% 0.134 269.2)

  8. Step 700

    700

    #455AA7

    oklch(49% 0.125 269.8)

  9. Step 800

    800

    #394A87

    oklch(42.7% 0.103 269.9)

  10. Step 900

    900

    #313E6C

    oklch(37.6% 0.081 270.3)

  11. Step 950

    950 (this color)

    #171F39

    oklch(24.6% 0.051 269.5)

Export this scale for Tailwind in the Tailwind colors tool

#171F39 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)#15223A0.010
Deuteranopia (no green cones)#111F380.009
Tritanopia (no blue cones)#0825290.046
Achromatopsia (no color)#2020200.051

Harmonies

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

Complementary

The opposite hue (180°).

  • #171F39

    #171F39

    oklch(24.6% 0.051 269.5)

  • #2A1F00

    #2A1F00

    oklch(24.6% 0.05 89.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #171F39

    #171F39

    oklch(24.6% 0.051 269.5)

  • #042336

    #042336

    oklch(24.5% 0.051 240.2)

  • #241B35

    #241B35

    oklch(24.6% 0.049 298.7)

Open the analogous palette in the generator

Split complementary

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

  • #171F39

    #171F39

    oklch(24.6% 0.051 269.5)

  • #321A04

    #321A04

    oklch(24.6% 0.051 60.3)

  • #1E2405

    #1E2405

    oklch(24.6% 0.05 119.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #171F39

    #171F39

    oklch(24.6% 0.051 269.5)

  • #351612

    #351612

    oklch(24.5% 0.051 28.9)

  • #0C2713

    #0C2713

    oklch(24.5% 0.05 149.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #171F39

    #171F39

    oklch(24.6% 0.051 269.5)

  • #341520

    #341520

    oklch(24.6% 0.052 359.1)

  • #2A1F00

    #2A1F00

    oklch(24.6% 0.05 89.5)

  • #002821

    #002821

    oklch(24.8% 0.046 177.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #171F39 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.