#342A42

Closest named color: Space Cadet (#2B2D42). oklch(30.7% 0.044 303), rgb(52, 42, 66).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (31%)
Chromamuted (0.044)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.55:1
White text13.49:1

Values

HEX#342A42
RGBrgb(52, 42, 66)
HSLhsl(265, 22%, 21%)
OKLCHoklch(30.7% 0.044 303)

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 #342A42 13.49:1 AAA Lc -103.1 Preferred for body text
Black text on #342A42 1.55:1 Fails Lc 0.0 Not readable
#342A42 text on white 13.49:1 AAA Lc 99.9 Preferred for body text
#342A42 text on black 1.55: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

    #F6F4F9

    oklch(97% 0.007 304.2)

  2. Step 100

    100

    #ECE8F2

    oklch(93.7% 0.014 304.1)

  3. Step 200

    200

    #DDD5E9

    oklch(88.5% 0.028 303.9)

  4. Step 300

    300

    #C7B9DD

    oklch(80.9% 0.052 302.9)

  5. Step 400

    400

    #AB94CC

    oklch(70.7% 0.084 303.1)

  6. Step 500

    500

    #9779BF

    oklch(63.2% 0.107 303.2)

  7. Step 600

    600

    #8161AB

    oklch(55.6% 0.116 302.7)

  8. Step 700

    700

    #6D5093

    oklch(49.1% 0.108 302.6)

  9. Step 800

    800

    #594277

    oklch(42.8% 0.089 302.8)

  10. Step 900

    900

    #493860

    oklch(37.7% 0.069 302.8)

  11. Step 950

    950 (this color)

    #342A42

    oklch(30.7% 0.044 303)

Export this scale for Tailwind in the Tailwind colors tool

#342A42 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)#252E430.027
Deuteranopia (no green cones)#272E410.025
Tritanopia (no blue cones)#322E330.034
Achromatopsia (no color)#2E2E2E0.045

Harmonies

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

Complementary

The opposite hue (180°).

  • #342A42

    #342A42

    oklch(30.7% 0.044 303)

  • #2B3319

    #2B3319

    oklch(30.6% 0.044 123)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #342A42

    #342A42

    oklch(30.7% 0.044 303)

  • #282E46

    #282E46

    oklch(30.7% 0.044 272.8)

  • #3D2739

    #3D2739

    oklch(30.7% 0.044 333.3)

Open the analogous palette in the generator

Split complementary

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

  • #342A42

    #342A42

    oklch(30.7% 0.044 303)

  • #372F14

    #372F14

    oklch(30.7% 0.044 93.2)

  • #1D3625

    #1D3625

    oklch(30.7% 0.044 153.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #342A42

    #342A42

    oklch(30.7% 0.044 303)

  • #3F2A17

    #3F2A17

    oklch(30.5% 0.044 62.1)

  • #103732

    #103732

    oklch(30.8% 0.044 183.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #342A42

    #342A42

    oklch(30.7% 0.044 303)

  • #432721

    #432721

    oklch(30.7% 0.044 32.8)

  • #2B3319

    #2B3319

    oklch(30.6% 0.044 123)

  • #0F353D

    #0F353D

    oklch(30.6% 0.044 214.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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