#342A4E

Closest named color: Space Cadet (#2B2D42). oklch(31.4% 0.064 295.3), rgb(52, 42, 78).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (31%)
Chromamuted (0.064)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.58:1
White text13.23:1

Values

HEX#342A4E
RGBrgb(52, 42, 78)
HSLhsl(257, 30%, 24%)
OKLCHoklch(31.4% 0.064 295.3)

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 #342A4E 13.23:1 AAA Lc -102.7 Preferred for body text
Black text on #342A4E 1.58:1 Fails Lc 0.0 Not readable
#342A4E text on white 13.23:1 AAA Lc 99.5 Preferred for body text
#342A4E text on black 1.58: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

    #F6F4FC

    oklch(97.1% 0.011 297.6)

  2. Step 100

    100

    #EBE7F7

    oklch(93.6% 0.022 297.4)

  3. Step 200

    200

    #DBD4F3

    oklch(88.5% 0.043 295.9)

  4. Step 300

    300

    #C4B7ED

    oklch(80.8% 0.076 295.7)

  5. Step 400

    400

    #A691E4

    oklch(70.8% 0.121 294.8)

  6. Step 500

    500

    #9273DC

    oklch(63.2% 0.155 295.2)

  7. Step 600

    600

    #7D59C9

    oklch(55.6% 0.167 295.2)

  8. Step 700

    700

    #6A48AE

    oklch(49.1% 0.156 295.4)

  9. Step 800

    800

    #563C8D

    oklch(42.8% 0.129 295.2)

  10. Step 900

    900

    #473470

    oklch(37.7% 0.1 295.8)

  11. Step 950

    950 (this color)

    #342A4E

    oklch(31.4% 0.064 295.3)

Export this scale for Tailwind in the Tailwind colors tool

#342A4E 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)#1F304F0.036
Deuteranopia (no green cones)#212F4D0.033
Tritanopia (no blue cones)#2E30380.051
Achromatopsia (no color)#3030300.064

Harmonies

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

Complementary

The opposite hue (180°).

  • #342A4E

    #342A4E

    oklch(31.4% 0.064 295.3)

  • #303508

    #303508

    oklch(31.4% 0.064 115.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #342A4E

    #342A4E

    oklch(31.4% 0.064 295.3)

  • #213052

    #213052

    oklch(31.4% 0.064 264.9)

  • #412543

    #412543

    oklch(31.3% 0.064 324.6)

Open the analogous palette in the generator

Split complementary

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

  • #342A4E

    #342A4E

    oklch(31.4% 0.064 295.3)

  • #402E01

    #402E01

    oklch(31.4% 0.063 84.7)

  • #1A3A1C

    #1A3A1C

    oklch(31.5% 0.065 145.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #342A4E

    #342A4E

    oklch(31.4% 0.064 295.3)

  • #4A280D

    #4A280D

    oklch(31.6% 0.064 55.8)

  • #003B30

    #003B30

    oklch(31.5% 0.059 175.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #342A4E

    #342A4E

    oklch(31.4% 0.064 295.3)

  • #4D2320

    #4D2320

    oklch(31.4% 0.064 25.6)

  • #303508

    #303508

    oklch(31.4% 0.064 115.7)

  • #00393E

    #00393E

    oklch(31.4% 0.054 204.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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