#331728

Closest named color: Eggplant (#380835). oklch(25.2% 0.052 344.2), rgb(51, 23, 40).

Aa

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

About this color

#331728 is a dark, muted purple. In OKLCH its lightness is 25%, its chroma 0.052 and its hue 344°. Its hue sits on the warm side of the wheel. The nearest named color is Eggplant (#380835), ΔE 0.047 away. White text reads best on it, at 16.22:1.

Hue familyPurples
Lightnessdark (25%)
Chromamuted (0.052)
Temperaturewarm
Nearest nameEggplant (#380835)
Black text1.29:1
White text16.22:1

Values

HEX#331728
RGBrgb(51, 23, 40)
HSLhsl(324, 38%, 15%)
OKLCHoklch(25.2% 0.052 344.2)

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

    #FAF3F7

    oklch(97.1% 0.009 341.8)

  2. Step 100

    100

    #F3E5ED

    oklch(93.5% 0.018 342)

  3. Step 200

    200

    #EBD1DF

    oklch(88.6% 0.034 344.1)

  4. Step 300

    300

    #DEB1CA

    oklch(80.8% 0.061 344.1)

  5. Step 400

    400

    #CC88AF

    oklch(70.7% 0.097 344.5)

  6. Step 500

    500

    #BE689C

    oklch(63.1% 0.127 344.2)

  7. Step 600

    600

    #A94E86

    oklch(55.6% 0.137 344.6)

  8. Step 700

    700

    #903F72

    oklch(49.1% 0.126 344.1)

  9. Step 800

    800

    #75345D

    oklch(42.6% 0.105 343.8)

  10. Step 900

    900

    #5F2E4C

    oklch(37.7% 0.082 344.2)

  11. Step 950

    950 (this color)

    #331728

    oklch(25.2% 0.052 344.2)

Export this scale for Tailwind in the Tailwind colors tool

#331728 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)#191E290.055
Deuteranopia (no green cones)#2022270.050
Tritanopia (no blue cones)#36171D0.022
Achromatopsia (no color)#2020200.052

Harmonies

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

Complementary

The opposite hue (180°).

  • #331728

    #331728

    oklch(25.2% 0.052 344.2)

  • #022A1B

    #022A1B

    oklch(25.3% 0.052 163.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #331728

    #331728

    oklch(25.2% 0.052 344.2)

  • #2B1A33

    #2B1A33

    oklch(25.2% 0.051 314.4)

  • #37161A

    #37161A

    oklch(25.1% 0.053 14.1)

Open the analogous palette in the generator

Split complementary

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

  • #331728

    #331728

    oklch(25.2% 0.052 344.2)

  • #17270C

    #17270C

    oklch(25.1% 0.051 134.2)

  • #002828

    #002828

    oklch(25.1% 0.043 194.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #331728

    #331728

    oklch(25.2% 0.052 344.2)

  • #262301

    #262301

    oklch(25.2% 0.052 104.6)

  • #002733

    #002733

    oklch(25.3% 0.047 223.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #331728

    #331728

    oklch(25.2% 0.052 344.2)

  • #311E01

    #311E01

    oklch(25.3% 0.052 74.3)

  • #022A1B

    #022A1B

    oklch(25.3% 0.052 163.2)

  • #0F233A

    #0F233A

    oklch(25.2% 0.051 253.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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