#311237

Closest named color: Eggplant (#380835). oklch(24.8% 0.077 320.9), rgb(49, 18, 55).

Aa

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

About this color

#311237 is a very dark, moderately saturated purple. In OKLCH its lightness is 25%, its chroma 0.077 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.024 away. White text reads best on it, at 16.50:1.

Hue familyPurples
Lightnessvery dark (25%)
Chromamoderately saturated (0.077)
Temperaturein between
Nearest nameEggplant (#380835)
Black text1.27:1
White text16.50:1

Values

HEX#311237
RGBrgb(49, 18, 55)
HSLhsl(290, 51%, 14%)
OKLCHoklch(24.8% 0.077 320.9)

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 #311237 16.50:1 AAA Lc -105.7 Preferred for body text
Black text on #311237 1.27:1 Fails Lc 0.0 Not readable
#311237 text on white 16.50:1 AAA Lc 103.2 Preferred for body text
#311237 text on black 1.27: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

    #F9F3FB

    oklch(97.1% 0.012 317.7)

  2. Step 100

    100

    #F2E4F5

    oklch(93.5% 0.027 320.2)

  3. Step 200

    200

    #E9CFEE

    oklch(88.5% 0.05 320.8)

  4. Step 300

    300

    #DCAEE5

    oklch(81% 0.091 320.8)

  5. Step 400

    400

    #C980D7

    oklch(70.7% 0.145 321)

  6. Step 500

    500

    #BA5CCC

    oklch(63.1% 0.185 321)

  7. Step 600

    600

    #A53DB9

    oklch(55.5% 0.202 320.8)

  8. Step 700

    700

    #8E2E9F

    oklch(49.2% 0.187 321.2)

  9. Step 800

    800

    #732881

    oklch(42.7% 0.155 321)

  10. Step 900

    900

    #5D2668

    oklch(37.6% 0.122 320.7)

  11. Step 950

    950 (this color)

    #311237

    oklch(24.8% 0.077 320.9)

Export this scale for Tailwind in the Tailwind colors tool

#311237 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)#0B1D380.073
Deuteranopia (no green cones)#1620360.064
Tritanopia (no blue cones)#3118220.048
Achromatopsia (no color)#1F1F1F0.077

Harmonies

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

Complementary

The opposite hue (180°).

  • #311237

    #311237

    oklch(24.8% 0.077 320.9)

  • #072902

    #072902

    oklch(24.7% 0.076 140.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #311237

    #311237

    oklch(24.8% 0.077 320.9)

  • #221842

    #221842

    oklch(24.7% 0.076 290.7)

  • #3A0D26

    #3A0D26

    oklch(24.7% 0.077 349.9)

Open the analogous palette in the generator

Split complementary

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

  • #311237

    #311237

    oklch(24.8% 0.077 320.9)

  • #232300

    #232300

    oklch(24.8% 0.054 109.8)

  • #00291E

    #00291E

    oklch(25% 0.049 170.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #311237

    #311237

    oklch(24.8% 0.077 320.9)

  • #2E1E00

    #2E1E00

    oklch(24.9% 0.051 80.2)

  • #002729

    #002729

    oklch(24.8% 0.042 200)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #311237

    #311237

    oklch(24.8% 0.077 320.9)

  • #391600

    #391600

    oklch(24.9% 0.065 50.7)

  • #072902

    #072902

    oklch(24.7% 0.076 140.6)

  • #002535

    #002535

    oklch(24.8% 0.051 231.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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