#342A47

Closest named color: Space Cadet (#2B2D42). oklch(31% 0.052 299.2), rgb(52, 42, 71).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (31%)
Chromamuted (0.052)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.56:1
White text13.39:1

Values

HEX#342A47
RGBrgb(52, 42, 71)
HSLhsl(261, 26%, 22%)
OKLCHoklch(31% 0.052 299.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 #342A47 13.39:1 AAA Lc -102.9 Preferred for body text
Black text on #342A47 1.56:1 Fails Lc 0.0 Not readable
#342A47 text on white 13.39:1 AAA Lc 99.8 Preferred for body text
#342A47 text on black 1.56: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

    #F6F4FA

    oklch(97% 0.008 301.4)

  2. Step 100

    100

    #EBE7F4

    oklch(93.5% 0.018 300.1)

  3. Step 200

    200

    #DCD5ED

    oklch(88.6% 0.033 299)

  4. Step 300

    300

    #C6B8E4

    oklch(80.9% 0.063 299.5)

  5. Step 400

    400

    #A993D6

    oklch(70.8% 0.099 298.9)

  6. Step 500

    500

    #9577CB

    oklch(63.2% 0.126 299.2)

  7. Step 600

    600

    #7F5EB8

    oklch(55.6% 0.138 298.8)

  8. Step 700

    700

    #6C4D9E

    oklch(49.1% 0.128 299.3)

  9. Step 800

    800

    #583F80

    oklch(42.6% 0.107 299.6)

  10. Step 900

    900

    #483667

    oklch(37.6% 0.083 299.3)

  11. Step 950

    950 (this color)

    #342A47

    oklch(31% 0.052 299.2)

Export this scale for Tailwind in the Tailwind colors tool

#342A47 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)#232F480.031
Deuteranopia (no green cones)#252F460.029
Tritanopia (no blue cones)#302F350.042
Achromatopsia (no color)#2F2F2F0.053

Harmonies

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

Complementary

The opposite hue (180°).

  • #342A47

    #342A47

    oklch(31% 0.052 299.2)

  • #2D3413

    #2D3413

    oklch(31% 0.053 119.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #342A47

    #342A47

    oklch(31% 0.052 299.2)

  • #252F4B

    #252F4B

    oklch(31% 0.052 268.3)

  • #3F263D

    #3F263D

    oklch(30.9% 0.053 329.6)

Open the analogous palette in the generator

Split complementary

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

  • #342A47

    #342A47

    oklch(31% 0.052 299.2)

  • #3B2F0D

    #3B2F0D

    oklch(31.1% 0.052 89.3)

  • #1C3821

    #1C3821

    oklch(31.1% 0.053 148.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #342A47

    #342A47

    oklch(31% 0.052 299.2)

  • #442913

    #442913

    oklch(31% 0.053 58.2)

  • #073931

    #073931

    oklch(31.1% 0.052 179.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #342A47

    #342A47

    oklch(31% 0.052 299.2)

  • #472521

    #472521

    oklch(30.9% 0.052 27.6)

  • #2D3413

    #2D3413

    oklch(31% 0.053 119.6)

  • #02373E

    #02373E

    oklch(30.9% 0.052 208.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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