#172D40

Closest named color: Oxford Blue (#1B263B). oklch(28.9% 0.045 246.2), rgb(23, 45, 64).

Aa

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

About this color

#172D40 is a dark, muted blue. In OKLCH its lightness is 29%, its chroma 0.045 and its hue 246°. Its hue sits on the cool side of the wheel. The nearest named color is Oxford Blue (#1B263B), ΔE 0.023 away. White text reads best on it, at 14.13:1.

Hue familyBlues
Lightnessdark (29%)
Chromamuted (0.045)
Temperaturecool
Nearest nameOxford Blue (#1B263B)
Black text1.48:1
White text14.13:1

Values

HEX#172D40
RGBrgb(23, 45, 64)
HSLhsl(208, 47%, 17%)
OKLCHoklch(28.9% 0.045 246.2)

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 #172D40 14.13:1 AAA Lc -103.7 Preferred for body text
Black text on #172D40 1.48:1 Fails Lc 0.0 Not readable
#172D40 text on white 14.13:1 AAA Lc 100.7 Preferred for body text
#172D40 text on black 1.48: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

    #F2F6FA

    oklch(97.1% 0.007 247.9)

  2. Step 100

    100

    #E2EBF4

    oklch(93.6% 0.016 248)

  3. Step 200

    200

    #CADCEC

    oklch(88.6% 0.029 244.9)

  4. Step 300

    300

    #A5C5E2

    oklch(81% 0.054 245.9)

  5. Step 400

    400

    #74A6D3

    oklch(70.7% 0.085 246.5)

  6. Step 500

    500

    #4D8FC7

    oklch(63.1% 0.108 246.2)

  7. Step 600

    600

    #2D78B4

    oklch(55.5% 0.119 246.5)

  8. Step 700

    700

    #1F659B

    oklch(49.1% 0.11 246.4)

  9. Step 800

    800

    #1C537E

    oklch(42.8% 0.091 246)

  10. Step 900

    900

    #1E4565

    oklch(37.8% 0.071 245.9)

  11. Step 950

    950 (this color)

    #172D40

    oklch(28.9% 0.045 246.2)

Export this scale for Tailwind in the Tailwind colors tool

#172D40 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)#252D410.020
Deuteranopia (no green cones)#1F29400.016
Tritanopia (no blue cones)#0032340.038
Achromatopsia (no color)#2B2B2B0.045

Harmonies

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

Complementary

The opposite hue (180°).

  • #172D40

    #172D40

    oklch(28.9% 0.045 246.2)

  • #3A2611

    #3A2611

    oklch(28.8% 0.045 65.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #172D40

    #172D40

    oklch(28.9% 0.045 246.2)

  • #093039

    #093039

    oklch(28.7% 0.045 216.7)

  • #252941

    #252941

    oklch(28.9% 0.044 276)

Open the analogous palette in the generator

Split complementary

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

  • #172D40

    #172D40

    oklch(28.9% 0.045 246.2)

  • #3E231B

    #3E231B

    oklch(28.9% 0.044 37.3)

  • #322B0E

    #322B0E

    oklch(29% 0.046 95.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #172D40

    #172D40

    oklch(28.9% 0.045 246.2)

  • #3E2127

    #3E2127

    oklch(28.8% 0.045 7)

  • #252F16

    #252F16

    oklch(28.8% 0.044 126.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #172D40

    #172D40

    oklch(28.9% 0.045 246.2)

  • #392233

    #392233

    oklch(28.8% 0.045 336.8)

  • #3A2611

    #3A2611

    oklch(28.8% 0.045 65.7)

  • #163222

    #163222

    oklch(29% 0.045 156.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #172D40 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.