#172B40

Closest named color: Oxford Blue (#1B263B). oklch(28.3% 0.047 250.9), rgb(23, 43, 64).

Aa

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

About this color

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

Hue familyBlues
Lightnessdark (28%)
Chromamuted (0.047)
Temperaturecool
Nearest nameOxford Blue (#1B263B)
Black text1.45:1
White text14.42:1

Values

HEX#172B40
RGBrgb(23, 43, 64)
HSLhsl(211, 47%, 17%)
OKLCHoklch(28.3% 0.047 250.9)

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 #172B40 14.42:1 AAA Lc -104.0 Preferred for body text
Black text on #172B40 1.45:1 Fails Lc 0.0 Not readable
#172B40 text on white 14.42:1 AAA Lc 101.1 Preferred for body text
#172B40 text on black 1.45: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

    #E2EBF5

    oklch(93.6% 0.017 250.8)

  3. Step 200

    200

    #CBDBED

    oklch(88.5% 0.03 251.3)

  4. Step 300

    300

    #A7C4E4

    oklch(81% 0.055 251.1)

  5. Step 400

    400

    #76A5D6

    oklch(70.7% 0.088 250.2)

  6. Step 500

    500

    #518DCC

    oklch(63% 0.114 251.1)

  7. Step 600

    600

    #3476B8

    oklch(55.5% 0.123 251)

  8. Step 700

    700

    #26639F

    oklch(49.1% 0.115 251.1)

  9. Step 800

    800

    #215181

    oklch(42.7% 0.095 251.1)

  10. Step 900

    900

    #214467

    oklch(37.8% 0.073 250.3)

  11. Step 950

    950 (this color)

    #172B40

    oklch(28.3% 0.047 250.9)

Export this scale for Tailwind in the Tailwind colors tool

#172B40 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)#222C410.016
Deuteranopia (no green cones)#1D28400.012
Tritanopia (no blue cones)#0030320.041
Achromatopsia (no color)#2A2A2A0.047

Harmonies

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

Complementary

The opposite hue (180°).

  • #172B40

    #172B40

    oklch(28.3% 0.047 250.9)

  • #38250D

    #38250D

    oklch(28.2% 0.047 70.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #172B40

    #172B40

    oklch(28.3% 0.047 250.9)

  • #072F3A

    #072F3A

    oklch(28.4% 0.047 220.7)

  • #252740

    #252740

    oklch(28.3% 0.046 279.5)

Open the analogous palette in the generator

Split complementary

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

  • #172B40

    #172B40

    oklch(28.3% 0.047 250.9)

  • #3D2117

    #3D2117

    oklch(28.2% 0.047 40.3)

  • #2F2A0C

    #2F2A0C

    oklch(28.3% 0.046 99.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #172B40

    #172B40

    oklch(28.3% 0.047 250.9)

  • #3D1F24

    #3D1F24

    oklch(28.2% 0.047 9.8)

  • #212E15

    #212E15

    oklch(28.2% 0.046 131.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #172B40

    #172B40

    oklch(28.3% 0.047 250.9)

  • #392031

    #392031

    oklch(28.3% 0.047 339.7)

  • #38250D

    #38250D

    oklch(28.2% 0.047 70.2)

  • #113122

    #113122

    oklch(28.4% 0.047 160.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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