#340B34

Closest named color: Eggplant (#380835). oklch(24.1% 0.087 327.9), rgb(52, 11, 52).

Aa

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

About this color

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

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

Values

HEX#340B34
RGBrgb(52, 11, 52)
HSLhsl(300, 65%, 12%)
OKLCHoklch(24.1% 0.087 327.9)

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 #340B34 16.88:1 AAA Lc -105.8 Preferred for body text
Black text on #340B34 1.24:1 Fails Lc 0.0 Not readable
#340B34 text on white 16.88:1 AAA Lc 103.3 Preferred for body text
#340B34 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

    #FBF2FA

    oklch(97% 0.014 329.1)

  2. Step 100

    100

    #F5E3F4

    oklch(93.5% 0.03 327.5)

  3. Step 200

    200

    #EFCCED

    oklch(88.5% 0.058 327.9)

  4. Step 300

    300

    #E5A9E3

    oklch(80.9% 0.103 327.6)

  5. Step 400

    400

    #D677D4

    oklch(70.6% 0.165 327.9)

  6. Step 500

    500

    #C94EC9

    oklch(63.2% 0.211 327.7)

  7. Step 600

    600

    #B427B5

    oklch(55.6% 0.229 327.8)

  8. Step 700

    700

    #9B159C

    oklch(49.1% 0.214 327.9)

  9. Step 800

    800

    #7E177E

    oklch(42.7% 0.177 328.1)

  10. Step 900

    900

    #661D66

    oklch(37.8% 0.138 327.9)

  11. Step 950

    950 (this color)

    #340B34

    oklch(24.1% 0.087 327.9)

Export this scale for Tailwind in the Tailwind colors tool

#340B34 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)#0619350.091
Deuteranopia (no green cones)#151F330.079
Tritanopia (no blue cones)#36111E0.049
Achromatopsia (no color)#1D1D1D0.088

Harmonies

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

Complementary

The opposite hue (180°).

  • #340B34

    #340B34

    oklch(24.1% 0.087 327.9)

  • #00280A

    #00280A

    oklch(24.1% 0.07 148.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #340B34

    #340B34

    oklch(24.1% 0.087 327.9)

  • #261243

    #261243

    oklch(24.2% 0.088 298.3)

  • #3D061F

    #3D061F

    oklch(24.2% 0.087 358.6)

Open the analogous palette in the generator

Split complementary

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

  • #340B34

    #340B34

    oklch(24.1% 0.087 327.9)

  • #1D2300

    #1D2300

    oklch(24.2% 0.057 118.8)

  • #00261F

    #00261F

    oklch(24% 0.044 177.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #340B34

    #340B34

    oklch(24.1% 0.087 327.9)

  • #291E00

    #291E00

    oklch(24.2% 0.049 89.1)

  • #00252A

    #00252A

    oklch(24.2% 0.042 208.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #340B34

    #340B34

    oklch(24.1% 0.087 327.9)

  • #331700

    #331700

    oklch(24.1% 0.058 57.9)

  • #00280A

    #00280A

    oklch(24.1% 0.07 148.1)

  • #002336

    #002336

    oklch(24.3% 0.053 237.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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