#172A41

Closest named color: Oxford Blue (#1B263B). oklch(28.1% 0.05 254), rgb(23, 42, 65).

Aa

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

About this color

#172A41 is a dark, muted blue. In OKLCH its lightness is 28%, its chroma 0.050 and its hue 254°. 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.54:1.

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

Values

HEX#172A41
RGBrgb(23, 42, 65)
HSLhsl(213, 48%, 17%)
OKLCHoklch(28.1% 0.05 254)

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 #172A41 14.54:1 AAA Lc -104.1 Preferred for body text
Black text on #172A41 1.44:1 Fails Lc 0.0 Not readable
#172A41 text on white 14.54:1 AAA Lc 101.2 Preferred for body text
#172A41 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

    #CBDBEF

    oklch(88.6% 0.033 254)

  4. Step 300

    300

    #A7C3E6

    oklch(80.8% 0.058 254.2)

  5. Step 400

    400

    #77A4DA

    oklch(70.8% 0.093 253.5)

  6. Step 500

    500

    #538CD0

    oklch(63.1% 0.119 253.9)

  7. Step 600

    600

    #3675BD

    oklch(55.7% 0.13 253.7)

  8. Step 700

    700

    #2862A3

    oklch(49.2% 0.12 253.6)

  9. Step 800

    800

    #235084

    oklch(42.7% 0.1 253.9)

  10. Step 900

    900

    #22436A

    oklch(37.8% 0.078 253.9)

  11. Step 950

    950 (this color)

    #172A41

    oklch(28.1% 0.05 254)

Export this scale for Tailwind in the Tailwind colors tool

#172A41 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)#212B420.015
Deuteranopia (no green cones)#1B27410.011
Tritanopia (no blue cones)#002F320.043
Achromatopsia (no color)#2929290.050

Harmonies

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

Complementary

The opposite hue (180°).

  • #172A41

    #172A41

    oklch(28.1% 0.05 254)

  • #382509

    #382509

    oklch(28.2% 0.05 73.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #172A41

    #172A41

    oklch(28.1% 0.05 254)

  • #042E3B

    #042E3B

    oklch(28.1% 0.049 223.9)

  • #262541

    #262541

    oklch(28% 0.051 284.2)

Open the analogous palette in the generator

Split complementary

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

  • #172A41

    #172A41

    oklch(28.1% 0.05 254)

  • #3D2114

    #3D2114

    oklch(28.2% 0.049 45.2)

  • #2D2A09

    #2D2A09

    oklch(28% 0.05 104.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #172A41

    #172A41

    oklch(28.1% 0.05 254)

  • #3E1E22

    #3E1E22

    oklch(28.1% 0.05 12.8)

  • #1F2E14

    #1F2E14

    oklch(28% 0.049 133.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #172A41

    #172A41

    oklch(28.1% 0.05 254)

  • #3A1F2F

    #3A1F2F

    oklch(28.1% 0.049 344.3)

  • #382509

    #382509

    oklch(28.2% 0.05 73.4)

  • #0C3122

    #0C3122

    oklch(28.2% 0.05 163)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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