#342E4A

Closest named color: Space Cadet (#2B2D42). oklch(32.1% 0.05 293.2), rgb(52, 46, 74).

Aa

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

About this color

#342E4A is a dark, muted purple. In OKLCH its lightness is 32%, its chroma 0.050 and its hue 293°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.022 away. White text reads best on it, at 12.83:1.

Hue familyPurples
Lightnessdark (32%)
Chromamuted (0.050)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.63:1
White text12.83:1

Values

HEX#342E4A
RGBrgb(52, 46, 74)
HSLhsl(253, 23%, 24%)
OKLCHoklch(32.1% 0.05 293.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 #342E4A 12.83:1 AAA Lc -102.3 Preferred for body text
Black text on #342E4A 1.63:1 Fails Lc 0.0 Not readable
#342E4A text on white 12.83:1 AAA Lc 99.0 Preferred for body text
#342E4A text on black 1.63: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

    #F5F5FA

    oklch(97.2% 0.007 286.3)

  2. Step 100

    100

    #EAE8F5

    oklch(93.6% 0.018 293.1)

  3. Step 200

    200

    #D9D6ED

    oklch(88.5% 0.031 291.7)

  4. Step 300

    300

    #C2BAE4

    oklch(80.9% 0.059 293.8)

  5. Step 400

    400

    #A396D6

    oklch(70.8% 0.093 293.2)

  6. Step 500

    500

    #8D7ACB

    oklch(63.1% 0.12 293.4)

  7. Step 600

    600

    #7862B8

    oklch(55.7% 0.131 293.5)

  8. Step 700

    700

    #65519E

    oklch(49.2% 0.12 293.4)

  9. Step 800

    800

    #524280

    oklch(42.6% 0.101 293.6)

  10. Step 900

    900

    #443967

    oklch(37.8% 0.077 293.3)

  11. Step 950

    950 (this color)

    #342E4A

    oklch(32.1% 0.05 293.2)

Export this scale for Tailwind in the Tailwind colors tool

#342E4A 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)#27324B0.023
Deuteranopia (no green cones)#2731490.023
Tritanopia (no blue cones)#2F33380.042
Achromatopsia (no color)#3232320.050

Harmonies

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

Complementary

The opposite hue (180°).

  • #342E4A

    #342E4A

    oklch(32.1% 0.05 293.2)

  • #333616

    #333616

    oklch(32.2% 0.05 113.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #342E4A

    #342E4A

    oklch(32.1% 0.05 293.2)

  • #26334C

    #26334C

    oklch(32.2% 0.048 262.9)

  • #3F2A42

    #3F2A42

    oklch(32% 0.05 322.3)

Open the analogous palette in the generator

Split complementary

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

  • #342E4A

    #342E4A

    oklch(32.1% 0.05 293.2)

  • #3F3113

    #3F3113

    oklch(32.2% 0.049 84.3)

  • #233A22

    #233A22

    oklch(32.2% 0.051 143.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #342E4A

    #342E4A

    oklch(32.1% 0.05 293.2)

  • #472C1A

    #472C1A

    oklch(32.2% 0.05 53.8)

  • #123B31

    #123B31

    oklch(32% 0.049 174.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #342E4A

    #342E4A

    oklch(32.1% 0.05 293.2)

  • #492827

    #492827

    oklch(31.9% 0.05 22.1)

  • #333616

    #333616

    oklch(32.2% 0.05 113.7)

  • #093A3E

    #093A3E

    oklch(32% 0.05 203.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #342E4A 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.