#172A40

Closest named color: Oxford Blue (#1B263B). oklch(28% 0.048 253.1), rgb(23, 42, 64).

Aa

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

About this color

#172A40 is a dark, muted blue. In OKLCH its lightness is 28%, its chroma 0.048 and its hue 253°. Its hue sits on the cool side of the wheel. The nearest named color is Oxford Blue (#1B263B), ΔE 0.015 away. White text reads best on it, at 14.56:1.

Hue familyBlues
Lightnessdark (28%)
Chromamuted (0.048)
Temperaturecool
Nearest nameOxford Blue (#1B263B)
Black text1.44:1
White text14.56:1

Values

HEX#172A40
RGBrgb(23, 42, 64)
HSLhsl(212, 47%, 17%)
OKLCHoklch(28% 0.048 253.1)

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 #172A40 14.56:1 AAA Lc -104.2 Preferred for body text
Black text on #172A40 1.44:1 Fails Lc 0.0 Not readable
#172A40 text on white 14.56:1 AAA Lc 101.3 Preferred for body text
#172A40 text on black 1.44: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

    #F2F6FB

    oklch(97.2% 0.008 253.9)

  2. Step 100

    100

    #E2EBF5

    oklch(93.6% 0.017 250.8)

  3. Step 200

    200

    #CBDBEE

    oklch(88.5% 0.031 252.7)

  4. Step 300

    300

    #A7C3E5

    oklch(80.8% 0.057 253.4)

  5. Step 400

    400

    #78A4D8

    oklch(70.7% 0.09 253.1)

  6. Step 500

    500

    #538CCE

    oklch(63% 0.117 253.2)

  7. Step 600

    600

    #3775BB

    oklch(55.6% 0.127 253.4)

  8. Step 700

    700

    #2962A1

    oklch(49.1% 0.117 253.2)

  9. Step 800

    800

    #235082

    oklch(42.6% 0.097 253.1)

  10. Step 900

    900

    #224369

    oklch(37.7% 0.076 253.3)

  11. Step 950

    950 (this color)

    #172A40

    oklch(28% 0.048 253.1)

Export this scale for Tailwind in the Tailwind colors tool

#172A40 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)#212B410.015
Deuteranopia (no green cones)#1C27400.011
Tritanopia (no blue cones)#002F320.041
Achromatopsia (no color)#2929290.048

Harmonies

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

Complementary

The opposite hue (180°).

  • #172A40

    #172A40

    oklch(28% 0.048 253.1)

  • #37250B

    #37250B

    oklch(28% 0.048 73.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #172A40

    #172A40

    oklch(28% 0.048 253.1)

  • #052E3A

    #052E3A

    oklch(28% 0.048 222.4)

  • #262640

    #262640

    oklch(28.2% 0.047 282.9)

Open the analogous palette in the generator

Split complementary

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

  • #172A40

    #172A40

    oklch(28% 0.048 253.1)

  • #3D2115

    #3D2115

    oklch(28.2% 0.048 43.6)

  • #2D2A0A

    #2D2A0A

    oklch(28% 0.049 104)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #172A40

    #172A40

    oklch(28% 0.048 253.1)

  • #3D1E22

    #3D1E22

    oklch(27.9% 0.048 12.5)

  • #1F2E14

    #1F2E14

    oklch(28% 0.049 133.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #172A40

    #172A40

    oklch(28% 0.048 253.1)

  • #391F2F

    #391F2F

    oklch(28% 0.047 343)

  • #37250B

    #37250B

    oklch(28% 0.048 73.5)

  • #0E3022

    #0E3022

    oklch(27.9% 0.048 163.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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