#301731

Closest named color: Eggplant (#380835). oklch(25.2% 0.058 325.7), rgb(48, 23, 49).

Aa

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

About this color

#301731 is a dark, muted purple. In OKLCH its lightness is 25%, its chroma 0.058 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.038 away. White text reads best on it, at 16.24:1.

Hue familyPurples
Lightnessdark (25%)
Chromamuted (0.058)
Temperaturein between
Nearest nameEggplant (#380835)
Black text1.29:1
White text16.24:1

Values

HEX#301731
RGBrgb(48, 23, 49)
HSLhsl(298, 36%, 14%)
OKLCHoklch(25.2% 0.058 325.7)

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

    #F9F3F9

    oklch(97% 0.01 325.7)

  2. Step 100

    100

    #F1E5F1

    oklch(93.5% 0.02 325.7)

  3. Step 200

    200

    #E7D1E7

    oklch(88.5% 0.038 325.9)

  4. Step 300

    300

    #D9B2D9

    oklch(81% 0.069 326.2)

  5. Step 400

    400

    #C488C6

    oklch(70.7% 0.11 325.6)

  6. Step 500

    500

    #B468B7

    oklch(63% 0.142 325.7)

  7. Step 600

    600

    #9F4EA3

    oklch(55.6% 0.153 325.6)

  8. Step 700

    700

    #883E8C

    oklch(49.1% 0.143 325.5)

  9. Step 800

    800

    #6F3471

    oklch(42.7% 0.118 326.2)

  10. Step 900

    900

    #5A2E5C

    oklch(37.7% 0.093 325.6)

  11. Step 950

    950 (this color)

    #301731

    oklch(25.2% 0.058 325.7)

Export this scale for Tailwind in the Tailwind colors tool

#301731 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)#141E320.056
Deuteranopia (no green cones)#1B21300.050
Tritanopia (no blue cones)#311A210.035
Achromatopsia (no color)#2020200.059

Harmonies

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

Complementary

The opposite hue (180°).

  • #301731

    #301731

    oklch(25.2% 0.058 325.7)

  • #0C290F

    #0C290F

    oklch(25.1% 0.059 145.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #301731

    #301731

    oklch(25.2% 0.058 325.7)

  • #251B3B

    #251B3B

    oklch(25.2% 0.06 296.3)

  • #371523

    #371523

    oklch(25.2% 0.057 356.1)

Open the analogous palette in the generator

Split complementary

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

  • #301731

    #301731

    oklch(25.2% 0.058 325.7)

  • #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.

  • #301731

    #301731

    oklch(25.2% 0.058 325.7)

  • #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.

  • #301731

    #301731

    oklch(25.2% 0.058 325.7)

  • #371902

    #371902

    oklch(25.2% 0.059 55.1)

  • #0C290F

    #0C290F

    oklch(25.1% 0.059 145.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 #301731, closest first.

Similar named colors

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

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