#310C32

Closest named color: Eggplant (#380835). oklch(23.6% 0.082 326.7), rgb(49, 12, 50).

Aa

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

About this color

#310C32 is a very dark, moderately saturated purple. In OKLCH its lightness is 24%, its chroma 0.082 and its hue 327°. 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.08:1.

Hue familyPurples
Lightnessvery dark (24%)
Chromamoderately saturated (0.082)
Temperaturein between
Nearest nameEggplant (#380835)
Black text1.22:1
White text17.08:1

Values

HEX#310C32
RGBrgb(49, 12, 50)
HSLhsl(298, 61%, 12%)
OKLCHoklch(23.6% 0.082 326.7)

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 #310C32 17.08:1 AAA Lc -106.0 Preferred for body text
Black text on #310C32 1.22:1 Fails Lc 0.0 Not readable
#310C32 text on white 17.08:1 AAA Lc 103.6 Preferred for body text
#310C32 text on black 1.22: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

    #FAF3FA

    oklch(97.2% 0.012 325.7)

  2. Step 100

    100

    #F4E4F4

    oklch(93.6% 0.027 325.8)

  3. Step 200

    200

    #EDCDEC

    oklch(88.4% 0.054 327)

  4. Step 300

    300

    #E2ABE2

    oklch(80.9% 0.097 326.4)

  5. Step 400

    400

    #D27BD3

    oklch(70.7% 0.155 326.7)

  6. Step 500

    500

    #C454C7

    oklch(63.1% 0.198 326.6)

  7. Step 600

    600

    #AF32B3

    oklch(55.5% 0.215 326.7)

  8. Step 700

    700

    #96229A

    oklch(49% 0.2 326.6)

  9. Step 800

    800

    #7A207D

    oklch(42.7% 0.165 326.6)

  10. Step 900

    900

    #632165

    oklch(37.7% 0.13 326.6)

  11. Step 950

    950 (this color)

    #310C32

    oklch(23.6% 0.082 326.7)

Export this scale for Tailwind in the Tailwind colors tool

#310C32 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)#0719330.084
Deuteranopia (no green cones)#141D310.072
Tritanopia (no blue cones)#33111D0.046
Achromatopsia (no color)#1C1C1C0.082

Harmonies

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

Complementary

The opposite hue (180°).

  • #310C32

    #310C32

    oklch(23.6% 0.082 326.7)

  • #002707

    #002707

    oklch(23.7% 0.072 146.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #310C32

    #310C32

    oklch(23.6% 0.082 326.7)

  • #23133F

    #23133F

    oklch(23.6% 0.08 296.5)

  • #3A071F

    #3A071F

    oklch(23.7% 0.082 356.9)

Open the analogous palette in the generator

Split complementary

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

  • #310C32

    #310C32

    oklch(23.6% 0.082 326.7)

  • #1D2100

    #1D2100

    oklch(23.5% 0.054 116.2)

  • #00251E

    #00251E

    oklch(23.6% 0.044 177)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #310C32

    #310C32

    oklch(23.6% 0.082 326.7)

  • #281C00

    #281C00

    oklch(23.5% 0.048 86.2)

  • #002428

    #002428

    oklch(23.8% 0.041 205.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #310C32

    #310C32

    oklch(23.6% 0.082 326.7)

  • #321600

    #321600

    oklch(23.7% 0.057 57.1)

  • #002707

    #002707

    oklch(23.7% 0.072 146.5)

  • #002133

    #002133

    oklch(23.5% 0.051 237.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #310C32 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.