#210731

Closest named color: Midnight Purple (#280137). oklch(20.1% 0.081 309.3), rgb(33, 7, 49).

Aa

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

About this color

#210731 is a very dark, moderately saturated purple. In OKLCH its lightness is 20%, its chroma 0.081 and its hue 309°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Midnight Purple (#280137), ΔE 0.023 away. White text reads best on it, at 18.43:1.

Hue familyPurples
Lightnessvery dark (20%)
Chromamoderately saturated (0.081)
Temperaturein between
Nearest nameMidnight Purple (#280137)
Black text1.13:1
White text18.43:1

Values

HEX#210731
RGBrgb(33, 7, 49)
HSLhsl(277, 75%, 11%)
OKLCHoklch(20.1% 0.081 309.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 #210731 18.43:1 AAA Lc -106.9 Preferred for body text
Black text on #210731 1.13:1 Fails Lc 0.0 Not readable
#210731 text on white 18.43:1 AAA Lc 104.7 Preferred for body text
#210731 text on black 1.13: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

    #F8F3FC

    oklch(97.1% 0.013 310.5)

  2. Step 100

    100

    #EFE5F8

    oklch(93.5% 0.027 309.2)

  3. Step 200

    200

    #E4D0F4

    oklch(88.5% 0.053 310.1)

  4. Step 300

    300

    #D3B0F0

    oklch(80.9% 0.096 309.2)

  5. Step 400

    400

    #BD83E8

    oklch(70.7% 0.154 309.4)

  6. Step 500

    500

    #AC60E1

    oklch(63.2% 0.195 309.1)

  7. Step 600

    600

    #9841CE

    oklch(55.6% 0.212 309.4)

  8. Step 700

    700

    #8231B2

    oklch(49.1% 0.197 309.6)

  9. Step 800

    800

    #692A90

    oklch(42.6% 0.163 309.4)

  10. Step 900

    900

    #552873

    oklch(37.6% 0.127 309.2)

  11. Step 950

    950 (this color)

    #210731

    oklch(20.1% 0.081 309.3)

Export this scale for Tailwind in the Tailwind colors tool

#210731 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.067
Deuteranopia (no green cones)#0114300.067
Tritanopia (no blue cones)#1F101B0.055
Achromatopsia (no color)#1414140.081

Harmonies

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

Complementary

The opposite hue (180°).

  • #210731

    #210731

    oklch(20.1% 0.081 309.3)

  • #0E1B00

    #0E1B00

    oklch(20.2% 0.054 129.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #210731

    #210731

    oklch(20.1% 0.081 309.3)

  • #110E39

    #110E39

    oklch(20.1% 0.08 279.5)

  • #2C0222

    #2C0222

    oklch(20.2% 0.082 339.5)

Open the analogous palette in the generator

Split complementary

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

  • #210731

    #210731

    oklch(20.1% 0.081 309.3)

  • #1B1600

    #1B1600

    oklch(20% 0.041 98.4)

  • #001C0E

    #001C0E

    oklch(20% 0.046 158.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #210731

    #210731

    oklch(20.1% 0.081 309.3)

  • #231200

    #231200

    oklch(20.2% 0.044 69)

  • #001B1A

    #001B1A

    oklch(20.1% 0.034 191.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #210731

    #210731

    oklch(20.1% 0.081 309.3)

  • #2D0800

    #2D0800

    oklch(20.1% 0.064 39)

  • #0E1B00

    #0E1B00

    oklch(20.2% 0.054 129.9)

  • #001A21

    #001A21

    oklch(20.1% 0.036 217.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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