#331334

Closest named color: Eggplant (#380835). oklch(25.1% 0.073 326.3), rgb(51, 19, 52).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (25%)
Chromamoderately saturated (0.073)
Temperaturein between
Nearest nameEggplant (#380835)
Black text1.28:1
White text16.36:1

Values

HEX#331334
RGBrgb(51, 19, 52)
HSLhsl(298, 46%, 14%)
OKLCHoklch(25.1% 0.073 326.3)

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 #331334 16.36:1 AAA Lc -105.6 Preferred for body text
Black text on #331334 1.28:1 Fails Lc 0.0 Not readable
#331334 text on white 16.36:1 AAA Lc 103.0 Preferred for body text
#331334 text on black 1.28: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

    #F3E4F3

    oklch(93.5% 0.026 325.8)

  3. Step 200

    200

    #EBCFEA

    oklch(88.6% 0.047 327.1)

  4. Step 300

    300

    #DEAEDE

    oklch(80.9% 0.085 326.3)

  5. Step 400

    400

    #CC80CE

    oklch(70.6% 0.138 326)

  6. Step 500

    500

    #BE5DC1

    oklch(63.1% 0.176 326.3)

  7. Step 600

    600

    #A93FAD

    oklch(55.6% 0.191 326.3)

  8. Step 700

    700

    #913095

    oklch(49.2% 0.177 326.2)

  9. Step 800

    800

    #762979

    oklch(42.8% 0.148 326.2)

  10. Step 900

    900

    #5F2761

    oklch(37.7% 0.114 326.2)

  11. Step 950

    950 (this color)

    #331334

    oklch(25.1% 0.073 326.3)

Export this scale for Tailwind in the Tailwind colors tool

#331334 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)#0F1D350.072
Deuteranopia (no green cones)#1921330.063
Tritanopia (no blue cones)#3417210.041
Achromatopsia (no color)#2020200.073

Harmonies

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

Complementary

The opposite hue (180°).

  • #331334

    #331334

    oklch(25.1% 0.073 326.3)

  • #022B0A

    #022B0A

    oklch(25.3% 0.073 146.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #331334

    #331334

    oklch(25.1% 0.073 326.3)

  • #261840

    #261840

    oklch(25% 0.073 296.9)

  • #3B0F23

    #3B0F23

    oklch(25% 0.073 355.6)

Open the analogous palette in the generator

Split complementary

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

  • #331334

    #331334

    oklch(25.1% 0.073 326.3)

  • #212500

    #212500

    oklch(25.2% 0.057 115.7)

  • #002921

    #002921

    oklch(25.1% 0.047 176.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #331334

    #331334

    oklch(25.1% 0.073 326.3)

  • #2D2000

    #2D2000

    oklch(25.2% 0.052 86.4)

  • #00282C

    #00282C

    oklch(25.3% 0.043 204.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #331334

    #331334

    oklch(25.1% 0.073 326.3)

  • #371900

    #371900

    oklch(25.2% 0.061 57.4)

  • #022B0A

    #022B0A

    oklch(25.3% 0.073 146.5)

  • #002538

    #002538

    oklch(25% 0.054 236.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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