#310831

Closest named color: Eggplant (#380835). oklch(23% 0.087 328), rgb(49, 8, 49).

Aa

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

About this color

#310831 is a very dark, moderately saturated purple. In OKLCH its lightness is 23%, its chroma 0.087 and its hue 328°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Eggplant (#380835), ΔE 0.018 away. White text reads best on it, at 17.36:1.

Hue familyPurples
Lightnessvery dark (23%)
Chromamoderately saturated (0.087)
Temperaturein between
Nearest nameEggplant (#380835)
Black text1.20:1
White text17.36:1

Values

HEX#310831
RGBrgb(49, 8, 49)
HSLhsl(300, 72%, 11%)
OKLCHoklch(23% 0.087 328)

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 #310831 17.36:1 AAA Lc -106.1 Preferred for body text
Black text on #310831 1.20:1 Fails Lc 0.0 Not readable
#310831 text on white 17.36:1 AAA Lc 103.7 Preferred for body text
#310831 text on black 1.20: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

    #FBF2FA

    oklch(97% 0.014 329.1)

  2. Step 100

    100

    #F5E3F4

    oklch(93.5% 0.03 327.5)

  3. Step 200

    200

    #EFCCED

    oklch(88.5% 0.058 327.9)

  4. Step 300

    300

    #E5A9E3

    oklch(80.9% 0.103 327.6)

  5. Step 400

    400

    #D677D4

    oklch(70.6% 0.165 327.9)

  6. Step 500

    500

    #C94EC8

    oklch(63.1% 0.21 328)

  7. Step 600

    600

    #B427B5

    oklch(55.6% 0.229 327.8)

  8. Step 700

    700

    #9B159C

    oklch(49.1% 0.214 327.9)

  9. Step 800

    800

    #7E187E

    oklch(42.7% 0.176 328.1)

  10. Step 900

    900

    #661D65

    oklch(37.7% 0.137 328.5)

  11. Step 950

    950 (this color)

    #310831

    oklch(23% 0.087 328)

Export this scale for Tailwind in the Tailwind colors tool

#310831 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)#0317320.093
Deuteranopia (no green cones)#131C300.078
Tritanopia (no blue cones)#330E1B0.049
Achromatopsia (no color)#1A1A1A0.088

Harmonies

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

Complementary

The opposite hue (180°).

  • #310831

    #310831

    oklch(23% 0.087 328)

  • #002509

    #002509

    oklch(23.1% 0.066 148.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #310831

    #310831

    oklch(23% 0.087 328)

  • #230F3F

    #230F3F

    oklch(22.9% 0.087 298.4)

  • #3A031D

    #3A031D

    oklch(23.1% 0.088 357.8)

Open the analogous palette in the generator

Split complementary

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

  • #310831

    #310831

    oklch(23% 0.087 328)

  • #1B2000

    #1B2000

    oklch(23% 0.054 117.8)

  • #00231D

    #00231D

    oklch(22.9% 0.042 178.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #310831

    #310831

    oklch(23% 0.087 328)

  • #261B00

    #261B00

    oklch(22.9% 0.047 87.6)

  • #002227

    #002227

    oklch(23.1% 0.04 208.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #310831

    #310831

    oklch(23% 0.087 328)

  • #301500

    #301500

    oklch(23.1% 0.056 57.3)

  • #002509

    #002509

    oklch(23.1% 0.066 148.3)

  • #002032

    #002032

    oklch(23.1% 0.051 237.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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