#28122C

Closest named color: Eggplant (#380835). oklch(22.7% 0.057 321.3), rgb(40, 18, 44).

Aa

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

About this color

#28122C is a very dark, muted purple. In OKLCH its lightness is 23%, its chroma 0.057 and its hue 321°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Eggplant (#380835), ΔE 0.044 away. White text reads best on it, at 17.31:1.

Hue familyPurples
Lightnessvery dark (23%)
Chromamuted (0.057)
Temperaturein between
Nearest nameEggplant (#380835)
Black text1.21:1
White text17.31:1

Values

HEX#28122C
RGBrgb(40, 18, 44)
HSLhsl(291, 42%, 12%)
OKLCHoklch(22.7% 0.057 321.3)

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 #28122C 17.31:1 AAA Lc -106.4 Preferred for body text
Black text on #28122C 1.21:1 Fails Lc 0.0 Not readable
#28122C text on white 17.31:1 AAA Lc 104.0 Preferred for body text
#28122C text on black 1.21: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

    #F0E6F2

    oklch(93.6% 0.019 320.6)

  3. Step 200

    200

    #E5D1E8

    oklch(88.4% 0.038 321.8)

  4. Step 300

    300

    #D5B3DB

    oklch(80.9% 0.067 321.2)

  5. Step 400

    400

    #C08AC9

    oklch(70.8% 0.107 321.6)

  6. Step 500

    500

    #AF6BBB

    oklch(63.1% 0.137 321.4)

  7. Step 600

    600

    #9A51A7

    oklch(55.6% 0.149 321.4)

  8. Step 700

    700

    #83418F

    oklch(49% 0.139 321.3)

  9. Step 800

    800

    #6B3674

    oklch(42.7% 0.115 321.6)

  10. Step 900

    900

    #57305E

    oklch(37.8% 0.089 321.4)

  11. Step 950

    950 (this color)

    #28122C

    oklch(22.7% 0.057 321.3)

Export this scale for Tailwind in the Tailwind colors tool

#28122C 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)#0E192D0.053
Deuteranopia (no green cones)#151B2B0.046
Tritanopia (no blue cones)#28151C0.035
Achromatopsia (no color)#1B1B1B0.057

Harmonies

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

Complementary

The opposite hue (180°).

  • #28122C

    #28122C

    oklch(22.7% 0.057 321.3)

  • #0B2208

    #0B2208

    oklch(22.6% 0.055 141.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #28122C

    #28122C

    oklch(22.7% 0.057 321.3)

  • #1D1634

    #1D1634

    oklch(22.6% 0.057 292)

  • #2F0F1F

    #2F0F1F

    oklch(22.6% 0.057 351.4)

Open the analogous palette in the generator

Split complementary

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

  • #28122C

    #28122C

    oklch(22.7% 0.057 321.3)

  • #1D1E00

    #1D1E00

    oklch(22.6% 0.05 111.5)

  • #002319

    #002319

    oklch(22.8% 0.045 169.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #28122C

    #28122C

    oklch(22.7% 0.057 321.3)

  • #271900

    #271900

    oklch(22.6% 0.047 80.5)

  • #002124

    #002124

    oklch(22.6% 0.038 203.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #28122C

    #28122C

    oklch(22.7% 0.057 321.3)

  • #301301

    #301301

    oklch(22.7% 0.056 51.9)

  • #0B2208

    #0B2208

    oklch(22.6% 0.055 141.3)

  • #00202E

    #00202E

    oklch(22.8% 0.046 231)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #28122C 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.