#171F3C

Closest named color: Oxford Blue (#1B263B). oklch(24.8% 0.056 270.3), rgb(23, 31, 60).

Aa

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

About this color

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

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

Values

HEX#171F3C
RGBrgb(23, 31, 60)
HSLhsl(227, 45%, 16%)
OKLCHoklch(24.8% 0.056 270.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 #171F3C 16.18:1 AAA Lc -105.6 Preferred for body text
Black text on #171F3C 1.29:1 Fails Lc 0.0 Not readable
#171F3C text on white 16.18:1 AAA Lc 103.1 Preferred for body text
#171F3C 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

    #F3F5FC

    oklch(97.1% 0.01 273.4)

  2. Step 100

    100

    #E5EAF7

    oklch(93.7% 0.018 269.1)

  3. Step 200

    200

    #CFD9F2

    oklch(88.5% 0.036 268.3)

  4. Step 300

    300

    #B0BFED

    oklch(80.9% 0.067 270.7)

  5. Step 400

    400

    #879DE3

    oklch(70.7% 0.106 270.2)

  6. Step 500

    500

    #6A83DB

    oklch(63.1% 0.136 270.2)

  7. Step 600

    600

    #536BC9

    oklch(55.6% 0.148 270.2)

  8. Step 700

    700

    #4459AE

    oklch(49.2% 0.137 270.3)

  9. Step 800

    800

    #38498D

    oklch(42.8% 0.114 270.4)

  10. Step 900

    900

    #303E70

    oklch(37.8% 0.087 270)

  11. Step 950

    950 (this color)

    #171F3C

    oklch(24.8% 0.056 270.3)

Export this scale for Tailwind in the Tailwind colors tool

#171F3C 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)#13223D0.010
Deuteranopia (no green cones)#0F1F3B0.011
Tritanopia (no blue cones)#05252A0.050
Achromatopsia (no color)#2121210.056

Harmonies

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

Complementary

The opposite hue (180°).

  • #171F3C

    #171F3C

    oklch(24.8% 0.056 270.3)

  • #2B2000

    #2B2000

    oklch(25% 0.051 90)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #171F3C

    #171F3C

    oklch(24.8% 0.056 270.3)

  • #012439

    #012439

    oklch(24.8% 0.056 240.2)

  • #261A38

    #261A38

    oklch(24.9% 0.057 300.8)

Open the analogous palette in the generator

Split complementary

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

  • #171F3C

    #171F3C

    oklch(24.8% 0.056 270.3)

  • #341A01

    #341A01

    oklch(24.9% 0.056 61.4)

  • #1E2502

    #1E2502

    oklch(24.9% 0.056 120.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #171F3C

    #171F3C

    oklch(24.8% 0.056 270.3)

  • #381510

    #381510

    oklch(24.8% 0.057 30)

  • #082912

    #082912

    oklch(25% 0.057 150.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #171F3C

    #171F3C

    oklch(24.8% 0.056 270.3)

  • #361420

    #361420

    oklch(24.8% 0.057 359.8)

  • #2B2000

    #2B2000

    oklch(25% 0.051 90)

  • #002822

    #002822

    oklch(24.8% 0.045 180.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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