#331038

Closest named color: Eggplant (#380835). oklch(24.9% 0.083 322.5), rgb(51, 16, 56).

Aa

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

About this color

#331038 is a very dark, moderately saturated purple. In OKLCH its lightness is 25%, its chroma 0.083 and its hue 322°. 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 16.50:1.

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

Values

HEX#331038
RGBrgb(51, 16, 56)
HSLhsl(293, 56%, 14%)
OKLCHoklch(24.9% 0.083 322.5)

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 #331038 16.50:1 AAA Lc -105.6 Preferred for body text
Black text on #331038 1.27:1 Fails Lc 0.0 Not readable
#331038 text on white 16.50:1 AAA Lc 103.1 Preferred for body text
#331038 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

    #FAF3FB

    oklch(97.2% 0.013 321.9)

  2. Step 100

    100

    #F3E4F5

    oklch(93.6% 0.028 322.2)

  3. Step 200

    200

    #EBCEEF

    oklch(88.6% 0.054 322.2)

  4. Step 300

    300

    #DFACE6

    oklch(81% 0.097 322.4)

  5. Step 400

    400

    #CE7CD9

    oklch(70.7% 0.157 322.7)

  6. Step 500

    500

    #C056CF

    oklch(63.2% 0.2 322.5)

  7. Step 600

    600

    #AB34BB

    oklch(55.6% 0.217 322.7)

  8. Step 700

    700

    #9224A2

    oklch(49.1% 0.202 322.2)

  9. Step 800

    800

    #772183

    oklch(42.7% 0.168 322.5)

  10. Step 900

    900

    #602269

    oklch(37.6% 0.131 322.4)

  11. Step 950

    950 (this color)

    #331038

    oklch(24.9% 0.083 322.5)

Export this scale for Tailwind in the Tailwind colors tool

#331038 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)#081C390.082
Deuteranopia (no green cones)#1520370.071
Tritanopia (no blue cones)#3416220.049
Achromatopsia (no color)#1F1F1F0.083

Harmonies

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

Complementary

The opposite hue (180°).

  • #331038

    #331038

    oklch(24.9% 0.083 322.5)

  • #012A01

    #012A01

    oklch(24.8% 0.082 142.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #331038

    #331038

    oklch(24.9% 0.083 322.5)

  • #241745

    #241745

    oklch(25% 0.083 292.4)

  • #3D0B25

    #3D0B25

    oklch(25% 0.082 352.9)

Open the analogous palette in the generator

Split complementary

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

  • #331038

    #331038

    oklch(24.9% 0.083 322.5)

  • #222400

    #222400

    oklch(25% 0.056 112.9)

  • #00291F

    #00291F

    oklch(25% 0.048 172.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #331038

    #331038

    oklch(24.9% 0.083 322.5)

  • #2D1F00

    #2D1F00

    oklch(25% 0.051 84.2)

  • #00272A

    #00272A

    oklch(24.8% 0.042 202.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #331038

    #331038

    oklch(24.9% 0.083 322.5)

  • #381700

    #381700

    oklch(24.9% 0.063 53.1)

  • #012A01

    #012A01

    oklch(24.8% 0.082 142.6)

  • #002536

    #002536

    oklch(24.9% 0.052 233.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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