#340E2F

Closest named color: Eggplant (#380835). oklch(24.2% 0.077 333.2), rgb(52, 14, 47).

Aa

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

About this color

#340E2F is a very dark, moderately saturated purple. In OKLCH its lightness is 24%, its chroma 0.077 and its hue 333°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Eggplant (#380835), ΔE 0.019 away. White text reads best on it, at 16.80:1.

Hue familyPurples
Lightnessvery dark (24%)
Chromamoderately saturated (0.077)
Temperaturein between
Nearest nameEggplant (#380835)
Black text1.24:1
White text16.80:1

Values

HEX#340E2F
RGBrgb(52, 14, 47)
HSLhsl(308, 58%, 13%)
OKLCHoklch(24.2% 0.077 333.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 #340E2F 16.80:1 AAA Lc -105.8 Preferred for body text
Black text on #340E2F 1.24:1 Fails Lc 0.0 Not readable
#340E2F text on white 16.80:1 AAA Lc 103.4 Preferred for body text
#340E2F text on black 1.24: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

    #FBF3F9

    oklch(97.2% 0.012 334.1)

  2. Step 100

    100

    #F5E4F1

    oklch(93.6% 0.025 333.7)

  3. Step 200

    200

    #EFCDE8

    oklch(88.5% 0.052 333.1)

  4. Step 300

    300

    #E5ABDA

    oklch(80.9% 0.091 333.2)

  5. Step 400

    400

    #D67BC7

    oklch(70.7% 0.147 333.3)

  6. Step 500

    500

    #C955B9

    oklch(63.2% 0.188 333.2)

  7. Step 600

    600

    #B434A4

    oklch(55.6% 0.203 333.5)

  8. Step 700

    700

    #9A258D

    oklch(49.1% 0.189 333.1)

  9. Step 800

    800

    #7D2172

    oklch(42.6% 0.157 333.3)

  10. Step 900

    900

    #65225C

    oklch(37.6% 0.122 333.4)

  11. Step 950

    950 (this color)

    #340E2F

    oklch(24.2% 0.077 333.2)

Export this scale for Tailwind in the Tailwind colors tool

#340E2F 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)#0D1A300.081
Deuteranopia (no green cones)#191F2E0.071
Tritanopia (no blue cones)#37111C0.041
Achromatopsia (no color)#1D1D1D0.078

Harmonies

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

Complementary

The opposite hue (180°).

  • #340E2F

    #340E2F

    oklch(24.2% 0.077 333.2)

  • #002811

    #002811

    oklch(24.3% 0.062 153.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #340E2F

    #340E2F

    oklch(24.2% 0.077 333.2)

  • #28143D

    #28143D

    oklch(24.3% 0.077 303.7)

  • #3B0A1C

    #3B0A1C

    oklch(24.1% 0.078 2.8)

Open the analogous palette in the generator

Split complementary

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

  • #340E2F

    #340E2F

    oklch(24.2% 0.077 333.2)

  • #1A2400

    #1A2400

    oklch(24.2% 0.06 123.7)

  • #002622

    #002622

    oklch(24.1% 0.043 184.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #340E2F

    #340E2F

    oklch(24.2% 0.077 333.2)

  • #281F00

    #281F00

    oklch(24.3% 0.05 93.2)

  • #00252C

    #00252C

    oklch(24.3% 0.043 213.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #340E2F

    #340E2F

    oklch(24.2% 0.077 333.2)

  • #321900

    #321900

    oklch(24.3% 0.055 63)

  • #002811

    #002811

    oklch(24.3% 0.062 153.4)

  • #002239

    #002239

    oklch(24.2% 0.058 243)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #340E2F 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.