#171131

Closest named color: Rich Black (#0D1B2A). oklch(20.6% 0.061 288.5), rgb(23, 17, 49).

Aa

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

About this color

#171131 is a very dark, muted purple. In OKLCH its lightness is 21%, its chroma 0.061 and its hue 288°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Black (#0D1B2A), ΔE 0.041 away. White text reads best on it, at 18.08:1.

Hue familyPurples
Lightnessvery dark (21%)
Chromamuted (0.061)
Temperaturecool
Nearest nameRich Black (#0D1B2A)
Black text1.16:1
White text18.08:1

Values

HEX#171131
RGBrgb(23, 17, 49)
HSLhsl(251, 48%, 13%)
OKLCHoklch(20.6% 0.061 288.5)

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 #171131 18.08:1 AAA Lc -106.9 Preferred for body text
Black text on #171131 1.16:1 Fails Lc 0.0 Not readable
#171131 text on white 18.08:1 AAA Lc 104.7 Preferred for body text
#171131 text on black 1.16: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

    #F5F5FC

    oklch(97.2% 0.009 286.2)

  2. Step 100

    100

    #E9E8F7

    oklch(93.6% 0.02 289.1)

  3. Step 200

    200

    #D7D5F3

    oklch(88.4% 0.041 288.6)

  4. Step 300

    300

    #BEBAED

    oklch(80.9% 0.072 288.3)

  5. Step 400

    400

    #9E94E4

    oklch(70.7% 0.116 288.8)

  6. Step 500

    500

    #8778DC

    oklch(63.1% 0.147 288.3)

  7. Step 600

    600

    #725ECA

    oklch(55.5% 0.161 288.5)

  8. Step 700

    700

    #604DAF

    oklch(49.1% 0.15 288.5)

  9. Step 800

    800

    #4E408D

    oklch(42.7% 0.123 288.4)

  10. Step 900

    900

    #413771

    oklch(37.8% 0.096 288.9)

  11. Step 950

    950 (this color)

    #171131

    oklch(20.6% 0.061 288.5)

Export this scale for Tailwind in the Tailwind colors tool

#171131 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)#0317320.034
Deuteranopia (no green cones)#0315300.033
Tritanopia (no blue cones)#0F181E0.052
Achromatopsia (no color)#1616160.061

Harmonies

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

Complementary

The opposite hue (180°).

  • #171131

    #171131

    oklch(20.6% 0.061 288.5)

  • #191900

    #191900

    oklch(20.7% 0.045 109.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #171131

    #171131

    oklch(20.6% 0.061 288.5)

  • #051633

    #051633

    oklch(20.5% 0.062 259.6)

  • #230C29

    #230C29

    oklch(20.6% 0.062 318.9)

Open the analogous palette in the generator

Split complementary

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

  • #171131

    #171131

    oklch(20.6% 0.061 288.5)

  • #221400

    #221400

    oklch(20.5% 0.043 76.7)

  • #071D01

    #071D01

    oklch(20.5% 0.06 138)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #171131

    #171131

    oklch(20.6% 0.061 288.5)

  • #2B0D00

    #2B0D00

    oklch(20.6% 0.057 47.3)

  • #001D14

    #001D14

    oklch(20.5% 0.041 169.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #171131

    #171131

    oklch(20.6% 0.061 288.5)

  • #2E080C

    #2E080C

    oklch(20.6% 0.062 18.4)

  • #191900

    #191900

    oklch(20.7% 0.045 109.8)

  • #001C1D

    #001C1D

    oklch(20.6% 0.035 198)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #171131 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.