#311234

Closest named color: Eggplant (#380835). oklch(24.6% 0.073 324), rgb(49, 18, 52).

Aa

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

About this color

#311234 is a very dark, moderately saturated purple. In OKLCH its lightness is 25%, its chroma 0.073 and its hue 324°. 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.57:1.

Hue familyPurples
Lightnessvery dark (25%)
Chromamoderately saturated (0.073)
Temperaturein between
Nearest nameEggplant (#380835)
Black text1.26:1
White text16.57:1

Values

HEX#311234
RGBrgb(49, 18, 52)
HSLhsl(295, 49%, 14%)
OKLCHoklch(24.6% 0.073 324)

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 #311234 16.57:1 AAA Lc -105.8 Preferred for body text
Black text on #311234 1.26:1 Fails Lc 0.0 Not readable
#311234 text on white 16.57:1 AAA Lc 103.3 Preferred for body text
#311234 text on black 1.26: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

    #F3E5F4

    oklch(93.7% 0.025 323.8)

  3. Step 200

    200

    #EACFEB

    oklch(88.5% 0.048 324.9)

  4. Step 300

    300

    #DDAEE0

    oklch(80.9% 0.086 324.4)

  5. Step 400

    400

    #CB81D1

    oklch(70.8% 0.139 324.2)

  6. Step 500

    500

    #BC5EC5

    oklch(63.2% 0.177 324)

  7. Step 600

    600

    #A740B1

    oklch(55.7% 0.192 324.1)

  8. Step 700

    700

    #8F3098

    oklch(49.1% 0.179 324.2)

  9. Step 800

    800

    #742A7B

    oklch(42.7% 0.147 324.2)

  10. Step 900

    900

    #5E2763

    oklch(37.6% 0.115 324.2)

  11. Step 950

    950 (this color)

    #311234

    oklch(24.6% 0.073 324)

Export this scale for Tailwind in the Tailwind colors tool

#311234 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)#0D1C350.071
Deuteranopia (no green cones)#1720330.063
Tritanopia (no blue cones)#3216200.043
Achromatopsia (no color)#1E1E1E0.074

Harmonies

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

Complementary

The opposite hue (180°).

  • #311234

    #311234

    oklch(24.6% 0.073 324)

  • #042906

    #042906

    oklch(24.6% 0.073 143.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #311234

    #311234

    oklch(24.6% 0.073 324)

  • #231840

    #231840

    oklch(24.7% 0.073 292.9)

  • #3A0E23

    #3A0E23

    oklch(24.7% 0.074 354.4)

Open the analogous palette in the generator

Split complementary

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

  • #311234

    #311234

    oklch(24.6% 0.073 324)

  • #212300

    #212300

    oklch(24.6% 0.055 112.9)

  • #00281F

    #00281F

    oklch(24.7% 0.047 173.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #311234

    #311234

    oklch(24.6% 0.073 324)

  • #2C1E00

    #2C1E00

    oklch(24.6% 0.05 83.6)

  • #00262A

    #00262A

    oklch(24.5% 0.042 205.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #311234

    #311234

    oklch(24.6% 0.073 324)

  • #361700

    #361700

    oklch(24.6% 0.061 54.9)

  • #042906

    #042906

    oklch(24.6% 0.073 143.9)

  • #002435

    #002435

    oklch(24.5% 0.051 233.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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