#170321

Closest named color: Midnight Purple (#280137). oklch(16.1% 0.066 313), rgb(23, 3, 33).

Aa

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

About this color

#170321 is a very dark, muted purple. In OKLCH its lightness is 16%, its chroma 0.066 and its hue 313°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Midnight Purple (#280137), ΔE 0.059 away. White text reads best on it, at 19.60:1.

Hue familyPurples
Lightnessvery dark (16%)
Chromamuted (0.066)
Temperaturein between
Nearest nameMidnight Purple (#280137)
Black text1.07:1
White text19.60:1

Values

HEX#170321
RGBrgb(23, 3, 33)
HSLhsl(280, 83%, 7%)
OKLCHoklch(16.1% 0.066 313)

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 #170321 19.60:1 AAA Lc -107.5 Preferred for body text
Black text on #170321 1.07:1 Fails Lc 0.0 Not readable
#170321 text on white 19.60:1 AAA Lc 105.5 Preferred for body text
#170321 text on black 1.07: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

    #F8F3FB

    oklch(97% 0.012 313.2)

  2. Step 100

    100

    #EFE6F5

    oklch(93.6% 0.022 312.2)

  3. Step 200

    200

    #E3D1EE

    oklch(88.4% 0.044 312.8)

  4. Step 300

    300

    #D2B2E5

    oklch(80.8% 0.078 312.8)

  5. Step 400

    400

    #BC88D8

    oklch(70.7% 0.126 313.2)

  6. Step 500

    500

    #AB68CD

    oklch(63.1% 0.16 313.3)

  7. Step 600

    600

    #964DBA

    oklch(55.6% 0.174 313)

  8. Step 700

    700

    #803DA0

    oklch(49.1% 0.162 313.2)

  9. Step 800

    800

    #683382

    oklch(42.7% 0.134 313.1)

  10. Step 900

    900

    #542E68

    oklch(37.6% 0.103 312.7)

  11. Step 950

    950 (this color)

    #170321

    oklch(16.1% 0.066 313)

Export this scale for Tailwind in the Tailwind colors tool

#170321 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)#000B220.058
Deuteranopia (no green cones)#020C200.055
Tritanopia (no blue cones)#1608100.044
Achromatopsia (no color)#0C0C0C0.066

Harmonies

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

Complementary

The opposite hue (180°).

  • #170321

    #170321

    oklch(16.1% 0.066 313)

  • #061100

    #061100

    oklch(16% 0.045 132.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #170321

    #170321

    oklch(16.1% 0.066 313)

  • #0B0728

    #0B0728

    oklch(16.2% 0.065 282.2)

  • #1F0115

    #1F0115

    oklch(16.3% 0.065 343.1)

Open the analogous palette in the generator

Split complementary

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

  • #170321

    #170321

    oklch(16.1% 0.066 313)

  • #100E00

    #100E00

    oklch(16.1% 0.034 104)

  • #001209

    #001209

    oklch(16.1% 0.035 162.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #170321

    #170321

    oklch(16.1% 0.066 313)

  • #160B00

    #160B00

    oklch(16.1% 0.034 74.8)

  • #001111

    #001111

    oklch(16.1% 0.027 194.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #170321

    #170321

    oklch(16.1% 0.066 313)

  • #1D0500

    #1D0500

    oklch(16% 0.048 42.4)

  • #061100

    #061100

    oklch(16% 0.045 132.4)

  • #001017

    #001017

    oklch(16.1% 0.03 224.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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