#342E48

Closest named color: Space Cadet (#2B2D42). oklch(32% 0.046 294.2), rgb(52, 46, 72).

Aa

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

About this color

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

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

Values

HEX#342E48
RGBrgb(52, 46, 72)
HSLhsl(254, 22%, 23%)
OKLCHoklch(32% 0.046 294.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 #342E48 12.88:1 AAA Lc -102.3 Preferred for body text
Black text on #342E48 1.63:1 Fails Lc 0.0 Not readable
#342E48 text on white 12.88:1 AAA Lc 99.0 Preferred for body text
#342E48 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

    #EAE8F4

    oklch(93.6% 0.016 293.7)

  3. Step 200

    200

    #DAD6EC

    oklch(88.6% 0.03 294.1)

  4. Step 300

    300

    #C2BAE1

    oklch(80.8% 0.055 294.5)

  5. Step 400

    400

    #A396D2

    oklch(70.6% 0.087 294)

  6. Step 500

    500

    #8E7BC6

    oklch(63.1% 0.112 294.6)

  7. Step 600

    600

    #7863B3

    oklch(55.6% 0.122 294.2)

  8. Step 700

    700

    #65529A

    oklch(49.1% 0.113 294)

  9. Step 800

    800

    #52437D

    oklch(42.6% 0.095 293.9)

  10. Step 900

    900

    #443964

    oklch(37.6% 0.073 294.4)

  11. Step 950

    950 (this color)

    #342E48

    oklch(32% 0.046 294.2)

Export this scale for Tailwind in the Tailwind colors tool

#342E48 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)#2732490.023
Deuteranopia (no green cones)#2831470.022
Tritanopia (no blue cones)#3032370.038
Achromatopsia (no color)#3232320.046

Harmonies

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

Complementary

The opposite hue (180°).

  • #342E48

    #342E48

    oklch(32% 0.046 294.2)

  • #323519

    #323519

    oklch(31.8% 0.045 114)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #342E48

    #342E48

    oklch(32% 0.046 294.2)

  • #27324A

    #27324A

    oklch(31.9% 0.046 265)

  • #3E2A40

    #3E2A40

    oklch(31.8% 0.047 323.5)

Open the analogous palette in the generator

Split complementary

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

  • #342E48

    #342E48

    oklch(32% 0.046 294.2)

  • #3E3115

    #3E3115

    oklch(32.1% 0.047 84.7)

  • #243924

    #243924

    oklch(32% 0.045 144.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #342E48

    #342E48

    oklch(32% 0.046 294.2)

  • #452C1B

    #452C1B

    oklch(31.9% 0.046 54.5)

  • #153A31

    #153A31

    oklch(31.8% 0.046 174.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #342E48

    #342E48

    oklch(32% 0.046 294.2)

  • #482927

    #482927

    oklch(32% 0.047 24)

  • #323519

    #323519

    oklch(31.8% 0.045 114)

  • #0F393E

    #0F393E

    oklch(31.8% 0.046 206.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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