#340E3B

Closest named color: Dark Purple (#35063E). oklch(25% 0.09 321.1), rgb(52, 14, 59).

Aa

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

About this color

#340E3B is a dark, moderately saturated purple. In OKLCH its lightness is 25%, its chroma 0.090 and its hue 321°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Purple (#35063E), ΔE 0.016 away. White text reads best on it, at 16.50:1.

Hue familyPurples
Lightnessdark (25%)
Chromamoderately saturated (0.090)
Temperaturein between
Nearest nameDark Purple (#35063E)
Black text1.27:1
White text16.50:1

Values

HEX#340E3B
RGBrgb(52, 14, 59)
HSLhsl(291, 62%, 14%)
OKLCHoklch(25% 0.09 321.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 #340E3B 16.50:1 AAA Lc -105.6 Preferred for body text
Black text on #340E3B 1.27:1 Fails Lc 0.0 Not readable
#340E3B text on white 16.50:1 AAA Lc 103.0 Preferred for body text
#340E3B text on black 1.27: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

    #FAF2FB

    oklch(97% 0.015 322.3)

  2. Step 100

    100

    #F4E4F7

    oklch(93.7% 0.03 320.9)

  3. Step 200

    200

    #ECCDF1

    oklch(88.5% 0.059 321.6)

  4. Step 300

    300

    #E0AAEB

    oklch(80.9% 0.107 320.6)

  5. Step 400

    400

    #D079E0

    oklch(70.8% 0.17 321.2)

  6. Step 500

    500

    #C24FD7

    oklch(63.1% 0.218 321.2)

  7. Step 600

    600

    #AD28C4

    oklch(55.5% 0.237 321.1)

  8. Step 700

    700

    #9417A9

    oklch(49% 0.219 321)

  9. Step 800

    800

    #791989

    oklch(42.8% 0.182 321.3)

  10. Step 900

    900

    #611E6E

    oklch(37.6% 0.142 320.7)

  11. Step 950

    950 (this color)

    #340E3B

    oklch(25% 0.09 321.1)

Export this scale for Tailwind in the Tailwind colors tool

#340E3B 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)#031C3C0.090
Deuteranopia (no green cones)#13203A0.077
Tritanopia (no blue cones)#3416230.055
Achromatopsia (no color)#1F1F1F0.091

Harmonies

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

Complementary

The opposite hue (180°).

  • #340E3B

    #340E3B

    oklch(25% 0.09 321.1)

  • #042A00

    #042A00

    oklch(24.9% 0.082 140.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #340E3B

    #340E3B

    oklch(25% 0.09 321.1)

  • #241648

    #241648

    oklch(25.1% 0.089 291.6)

  • #3F0827

    #3F0827

    oklch(25.2% 0.09 351.2)

Open the analogous palette in the generator

Split complementary

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

  • #340E3B

    #340E3B

    oklch(25% 0.09 321.1)

  • #232400

    #232400

    oklch(25.1% 0.055 111.3)

  • #00291E

    #00291E

    oklch(25% 0.049 170.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #340E3B

    #340E3B

    oklch(25% 0.09 321.1)

  • #2E1E00

    #2E1E00

    oklch(24.9% 0.051 80.2)

  • #00282A

    #00282A

    oklch(25.2% 0.043 199.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #340E3B

    #340E3B

    oklch(25% 0.09 321.1)

  • #391600

    #391600

    oklch(24.9% 0.065 50.7)

  • #042A00

    #042A00

    oklch(24.9% 0.082 140.9)

  • #002635

    #002635

    oklch(25.1% 0.05 229.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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