#170A31

Closest named color: Midnight Purple (#280137). oklch(19.2% 0.073 293.6), rgb(23, 10, 49).

Aa

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

About this color

#170A31 is a very dark, moderately saturated purple. In OKLCH its lightness is 19%, its chroma 0.073 and its hue 294°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Midnight Purple (#280137), ΔE 0.045 away. White text reads best on it, at 18.67:1.

Hue familyPurples
Lightnessvery dark (19%)
Chromamoderately saturated (0.073)
Temperaturein between
Nearest nameMidnight Purple (#280137)
Black text1.12:1
White text18.67:1

Values

HEX#170A31
RGBrgb(23, 10, 49)
HSLhsl(260, 66%, 12%)
OKLCHoklch(19.2% 0.073 293.6)

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 #170A31 18.67:1 AAA Lc -107.1 Preferred for body text
Black text on #170A31 1.12:1 Fails Lc 0.0 Not readable
#170A31 text on white 18.67:1 AAA Lc 105.0 Preferred for body text
#170A31 text on black 1.12: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

    #F6F4FD

    oklch(97.1% 0.012 296.4)

  2. Step 100

    100

    #EAE7FA

    oklch(93.6% 0.026 293.1)

  3. Step 200

    200

    #DAD4F7

    oklch(88.6% 0.048 293.3)

  4. Step 300

    300

    #C3B6F4

    oklch(80.9% 0.087 294)

  5. Step 400

    400

    #A58EEE

    oklch(70.6% 0.139 293.6)

  6. Step 500

    500

    #916FE9

    oklch(63.2% 0.177 293.5)

  7. Step 600

    600

    #7C53D7

    oklch(55.6% 0.193 293.4)

  8. Step 700

    700

    #6942BA

    oklch(49% 0.18 293.6)

  9. Step 800

    800

    #563897

    oklch(42.8% 0.148 293.7)

  10. Step 900

    900

    #463178

    oklch(37.6% 0.116 293.7)

  11. Step 950

    950 (this color)

    #170A31

    oklch(19.2% 0.073 293.6)

Export this scale for Tailwind in the Tailwind colors tool

#170A31 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)#0013320.045
Deuteranopia (no green cones)#0012300.045
Tritanopia (no blue cones)#10131C0.056
Achromatopsia (no color)#1212120.074

Harmonies

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

Complementary

The opposite hue (180°).

  • #170A31

    #170A31

    oklch(19.2% 0.073 293.6)

  • #141600

    #141600

    oklch(19.1% 0.043 114)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #170A31

    #170A31

    oklch(19.2% 0.073 293.6)

  • #041134

    #041134

    oklch(19.3% 0.072 263.8)

  • #230526

    #230526

    oklch(19.2% 0.073 324.1)

Open the analogous palette in the generator

Split complementary

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

  • #170A31

    #170A31

    oklch(19.2% 0.073 293.6)

  • #1D1200

    #1D1200

    oklch(19.2% 0.04 81.7)

  • #001B01

    #001B01

    oklch(19.3% 0.063 143.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #170A31

    #170A31

    oklch(19.2% 0.073 293.6)

  • #240D00

    #240D00

    oklch(19.2% 0.048 54.4)

  • #001913

    #001913

    oklch(19.1% 0.036 175.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #170A31

    #170A31

    oklch(19.2% 0.073 293.6)

  • #2D0104

    #2D0104

    oklch(19% 0.074 22.7)

  • #141600

    #141600

    oklch(19.1% 0.043 114)

  • #00181B

    #00181B

    oklch(19.1% 0.033 205.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #170A31 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.