#340631

Closest named color: Eggplant (#380835). oklch(23.3% 0.092 331), rgb(52, 6, 49).

Aa

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

About this color

#340631 is a very dark, moderately saturated purple. In OKLCH its lightness is 23%, its chroma 0.092 and its hue 331°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Eggplant (#380835), ΔE 0.013 away. White text reads best on it, at 17.26:1.

Hue familyPurples
Lightnessvery dark (23%)
Chromamoderately saturated (0.092)
Temperaturein between
Nearest nameEggplant (#380835)
Black text1.21:1
White text17.26:1

Values

HEX#340631
RGBrgb(52, 6, 49)
HSLhsl(304, 79%, 11%)
OKLCHoklch(23.3% 0.092 331)

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 #340631 17.26:1 AAA Lc -106.0 Preferred for body text
Black text on #340631 1.21:1 Fails Lc 0.0 Not readable
#340631 text on white 17.26:1 AAA Lc 103.5 Preferred for body text
#340631 text on black 1.21: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

    #FCF2FA

    oklch(97.1% 0.015 332.2)

  2. Step 100

    100

    #F7E3F4

    oklch(93.7% 0.031 330.7)

  3. Step 200

    200

    #F1CBEC

    oklch(88.4% 0.061 330.4)

  4. Step 300

    300

    #EAA7E1

    oklch(81% 0.109 331.3)

  5. Step 400

    400

    #DC73D2

    oklch(70.7% 0.174 330.9)

  6. Step 500

    500

    #D046C6

    oklch(63.2% 0.223 330.9)

  7. Step 600

    600

    #BB15B2

    oklch(55.6% 0.242 331)

  8. Step 700

    700

    #A00099

    oklch(49.1% 0.223 330.7)

  9. Step 800

    800

    #830A7C

    oklch(42.7% 0.187 331.2)

  10. Step 900

    900

    #691764

    oklch(37.6% 0.146 330.7)

  11. Step 950

    950 (this color)

    #340631

    oklch(23.3% 0.092 331)

Export this scale for Tailwind in the Tailwind colors tool

#340631 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)#0317320.100
Deuteranopia (no green cones)#141D300.085
Tritanopia (no blue cones)#360C1B0.049
Achromatopsia (no color)#1B1B1B0.093

Harmonies

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

Complementary

The opposite hue (180°).

  • #340631

    #340631

    oklch(23.3% 0.092 331)

  • #00260D

    #00260D

    oklch(23.5% 0.063 150.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #340631

    #340631

    oklch(23.3% 0.092 331)

  • #260E41

    #260E41

    oklch(23.4% 0.092 301)

  • #3D011B

    #3D011B

    oklch(23.4% 0.093 1.3)

Open the analogous palette in the generator

Split complementary

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

  • #340631

    #340631

    oklch(23.3% 0.092 331)

  • #1A2100

    #1A2100

    oklch(23.2% 0.055 120.5)

  • #00241F

    #00241F

    oklch(23.3% 0.042 181.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #340631

    #340631

    oklch(23.3% 0.092 331)

  • #261C00

    #261C00

    oklch(23.2% 0.047 90)

  • #002328

    #002328

    oklch(23.4% 0.04 208.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #340631

    #340631

    oklch(23.3% 0.092 331)

  • #301600

    #301600

    oklch(23.3% 0.055 59.3)

  • #00260D

    #00260D

    oklch(23.5% 0.063 150.8)

  • #002035

    #002035

    oklch(23.3% 0.055 241.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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