#310B25

Closest named color: Eggplant (#380835). oklch(22.7% 0.071 342.4), rgb(49, 11, 37).

Aa

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

About this color

#310B25 is a very dark, moderately saturated purple. In OKLCH its lightness is 23%, its chroma 0.071 and its hue 342°. Its hue sits on the warm side of the wheel. The nearest named color is Eggplant (#380835), ΔE 0.035 away. White text reads best on it, at 17.42:1.

Hue familyPurples
Lightnessvery dark (23%)
Chromamoderately saturated (0.071)
Temperaturewarm
Nearest nameEggplant (#380835)
Black text1.20:1
White text17.42:1

Values

HEX#310B25
RGBrgb(49, 11, 37)
HSLhsl(319, 63%, 12%)
OKLCHoklch(22.7% 0.071 342.4)

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 #310B25 17.42:1 AAA Lc -106.3 Preferred for body text
Black text on #310B25 1.20:1 Fails Lc 0.0 Not readable
#310B25 text on white 17.42:1 AAA Lc 103.9 Preferred for body text
#310B25 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

    #FBF3F7

    oklch(97.1% 0.01 345.4)

  2. Step 100

    100

    #F6E4EE

    oklch(93.6% 0.024 342.9)

  3. Step 200

    200

    #F0CEE2

    oklch(88.6% 0.046 341.9)

  4. Step 300

    300

    #E7ABD0

    oklch(80.8% 0.085 341.6)

  5. Step 400

    400

    #D97DB7

    oklch(70.7% 0.134 342.6)

  6. Step 500

    500

    #CC58A5

    oklch(63.1% 0.171 342.6)

  7. Step 600

    600

    #B73891

    oklch(55.5% 0.187 342.1)

  8. Step 700

    700

    #9E297B

    oklch(49.2% 0.174 342.6)

  9. Step 800

    800

    #802464

    oklch(42.7% 0.144 342.4)

  10. Step 900

    900

    #672452

    oklch(37.7% 0.112 341.9)

  11. Step 950

    950 (this color)

    #310B25

    oklch(22.7% 0.071 342.4)

Export this scale for Tailwind in the Tailwind colors tool

#310B25 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)#0E16260.077
Deuteranopia (no green cones)#191C240.068
Tritanopia (no blue cones)#350B160.031
Achromatopsia (no color)#1A1A1A0.072

Harmonies

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

Complementary

The opposite hue (180°).

  • #310B25

    #310B25

    oklch(22.7% 0.071 342.4)

  • #002315

    #002315

    oklch(22.6% 0.049 162.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #310B25

    #310B25

    oklch(22.7% 0.071 342.4)

  • #271033

    #271033

    oklch(22.7% 0.07 312.5)

  • #360913

    #360913

    oklch(22.6% 0.071 12)

Open the analogous palette in the generator

Split complementary

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

  • #310B25

    #310B25

    oklch(22.7% 0.071 342.4)

  • #102200

    #102200

    oklch(22.7% 0.064 132.4)

  • #002221

    #002221

    oklch(22.8% 0.039 191.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #310B25

    #310B25

    oklch(22.7% 0.071 342.4)

  • #211D00

    #211D00

    oklch(22.8% 0.048 102.2)

  • #00202A

    #00202A

    oklch(22.6% 0.042 222.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #310B25

    #310B25

    oklch(22.7% 0.071 342.4)

  • #2A1800

    #2A1800

    oklch(22.8% 0.049 72.5)

  • #002315

    #002315

    oklch(22.6% 0.049 162.5)

  • #001C3B

    #001C3B

    oklch(22.6% 0.069 252.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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