#28172E

Closest named color: Dark (#1B2431). oklch(23.8% 0.049 316.9), rgb(40, 23, 46).

Aa

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

About this color

#28172E is a very dark, muted purple. In OKLCH its lightness is 24%, its chroma 0.049 and its hue 317°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark (#1B2431), ΔE 0.046 away. White text reads best on it, at 16.77:1.

Hue familyPurples
Lightnessvery dark (24%)
Chromamuted (0.049)
Temperaturein between
Nearest nameDark (#1B2431)
Black text1.25:1
White text16.77:1

Values

HEX#28172E
RGBrgb(40, 23, 46)
HSLhsl(284, 33%, 14%)
OKLCHoklch(23.8% 0.049 316.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 #28172E 16.77:1 AAA Lc -106.0 Preferred for body text
Black text on #28172E 1.25:1 Fails Lc 0.0 Not readable
#28172E text on white 16.77:1 AAA Lc 103.6 Preferred for body text
#28172E text on black 1.25: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

    #F8F4F9

    oklch(97.2% 0.008 319.4)

  2. Step 100

    100

    #EEE7F1

    oklch(93.6% 0.015 316)

  3. Step 200

    200

    #E2D3E7

    oklch(88.5% 0.031 317.7)

  4. Step 300

    300

    #D0B6DA

    oklch(81% 0.057 316.6)

  5. Step 400

    400

    #B88FC7

    oklch(70.8% 0.092 316.8)

  6. Step 500

    500

    #A672B8

    oklch(63.1% 0.117 317.1)

  7. Step 600

    600

    #9159A4

    oklch(55.6% 0.127 317.1)

  8. Step 700

    700

    #7B498D

    oklch(49.1% 0.118 316.6)

  9. Step 800

    800

    #643C72

    oklch(42.7% 0.098 316.9)

  10. Step 900

    900

    #52345C

    oklch(37.8% 0.076 317.4)

  11. Step 950

    950 (this color)

    #28172E

    oklch(23.8% 0.049 316.9)

Export this scale for Tailwind in the Tailwind colors tool

#28172E 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)#131C2F0.041
Deuteranopia (no green cones)#181E2D0.037
Tritanopia (no blue cones)#281A200.032
Achromatopsia (no color)#1D1D1D0.049

Harmonies

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

Complementary

The opposite hue (180°).

  • #28172E

    #28172E

    oklch(23.8% 0.049 316.9)

  • #13240C

    #13240C

    oklch(23.8% 0.049 137.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #28172E

    #28172E

    oklch(23.8% 0.049 316.9)

  • #1D1B35

    #1D1B35

    oklch(23.9% 0.049 285.6)

  • #2F1523

    #2F1523

    oklch(23.9% 0.047 347.8)

Open the analogous palette in the generator

Split complementary

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

  • #28172E

    #28172E

    oklch(23.8% 0.049 316.9)

  • #222002

    #222002

    oklch(23.8% 0.048 105.9)

  • #00261A

    #00261A

    oklch(23.8% 0.049 167.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #28172E

    #28172E

    oklch(23.8% 0.049 316.9)

  • #2C1B01

    #2C1B01

    oklch(23.8% 0.049 75.4)

  • #002525

    #002525

    oklch(23.9% 0.041 194.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #28172E

    #28172E

    oklch(23.8% 0.049 316.9)

  • #311709

    #311709

    oklch(23.9% 0.048 47.5)

  • #13240C

    #13240C

    oklch(23.8% 0.049 137.3)

  • #002330

    #002330

    oklch(23.9% 0.046 227.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #28172E 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.