#340A37

Closest named color: Eggplant (#380835). oklch(24.2% 0.092 325.1), rgb(52, 10, 55).

Aa

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

About this color

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

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

Values

HEX#340A37
RGBrgb(52, 10, 55)
HSLhsl(296, 69%, 13%)
OKLCHoklch(24.2% 0.092 325.1)

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

    #FBF2FB

    oklch(97.1% 0.015 325.7)

  2. Step 100

    100

    #F5E3F6

    oklch(93.6% 0.032 324.2)

  3. Step 200

    200

    #EECCEF

    oklch(88.4% 0.06 325.2)

  4. Step 300

    300

    #E5A8E7

    oklch(80.9% 0.109 325.5)

  5. Step 400

    400

    #D576DB

    oklch(70.7% 0.173 325)

  6. Step 500

    500

    #C84AD1

    oklch(63% 0.222 325)

  7. Step 600

    600

    #B41FBE

    oklch(55.7% 0.242 325.2)

  8. Step 700

    700

    #9A0AA4

    oklch(49.1% 0.224 325)

  9. Step 800

    800

    #7D1285

    oklch(42.7% 0.186 324.9)

  10. Step 900

    900

    #651B6A

    oklch(37.7% 0.144 325.2)

  11. Step 950

    950 (this color)

    #340A37

    oklch(24.2% 0.092 325.1)

Export this scale for Tailwind in the Tailwind colors tool

#340A37 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)#021A380.096
Deuteranopia (no green cones)#131F360.082
Tritanopia (no blue cones)#35111F0.053
Achromatopsia (no color)#1D1D1D0.092

Harmonies

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

Complementary

The opposite hue (180°).

  • #340A37

    #340A37

    oklch(24.2% 0.092 325.1)

  • #002805

    #002805

    oklch(24.1% 0.075 145.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #340A37

    #340A37

    oklch(24.2% 0.092 325.1)

  • #241246

    #241246

    oklch(24.2% 0.092 294.4)

  • #3E0422

    #3E0422

    oklch(24.3% 0.092 355.1)

Open the analogous palette in the generator

Split complementary

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

  • #340A37

    #340A37

    oklch(24.2% 0.092 325.1)

  • #1F2300

    #1F2300

    oklch(24.4% 0.056 115.9)

  • #00271F

    #00271F

    oklch(24.4% 0.046 175.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #340A37

    #340A37

    oklch(24.2% 0.092 325.1)

  • #2B1D00

    #2B1D00

    oklch(24.2% 0.05 83)

  • #002529

    #002529

    oklch(24.1% 0.041 205.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #340A37

    #340A37

    oklch(24.2% 0.092 325.1)

  • #351600

    #351600

    oklch(24.2% 0.061 54.1)

  • #002805

    #002805

    oklch(24.1% 0.075 145.2)

  • #002335

    #002335

    oklch(24.2% 0.052 236)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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