#342E64

Closest named color: Prussian Blue (#1D3557). oklch(33.8% 0.092 285.4), rgb(52, 46, 100).

Aa

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

About this color

#342E64 is a dark, moderately saturated purple. In OKLCH its lightness is 34%, its chroma 0.092 and its hue 285°. Its hue sits on the cool side of the wheel. The nearest named color is Prussian Blue (#1D3557), ΔE 0.046 away. White text reads best on it, at 12.20:1.

Hue familyPurples
Lightnessdark (34%)
Chromamoderately saturated (0.092)
Temperaturecool
Nearest namePrussian Blue (#1D3557)
Black text1.72:1
White text12.20:1

Values

HEX#342E64
RGBrgb(52, 46, 100)
HSLhsl(247, 37%, 29%)
OKLCHoklch(33.8% 0.092 285.4)

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 #342E64 12.20:1 AAA Lc -101.2 Preferred for body text
Black text on #342E64 1.72:1 Fails Lc 0.0 Not readable
#342E64 text on white 12.20:1 AAA Lc 97.7 Preferred for body text
#342E64 text on black 1.72: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 900.

  1. Step 50

    50

    #F5F5FC

    oklch(97.2% 0.009 286.2)

  2. Step 100

    100

    #E8E8F7

    oklch(93.5% 0.02 286)

  3. Step 200

    200

    #D6D6F2

    oklch(88.5% 0.038 285.6)

  4. Step 300

    300

    #BCBBEC

    oklch(80.9% 0.069 285.7)

  5. Step 400

    400

    #9A96E2

    oklch(70.6% 0.11 285.6)

  6. Step 500

    500

    #837BDA

    oklch(63.2% 0.14 285.5)

  7. Step 600

    600

    #6D62C8

    oklch(55.7% 0.153 285.2)

  8. Step 700

    700

    #5B50AD

    oklch(49.1% 0.143 285.2)

  9. Step 800

    800

    #4B428C

    oklch(42.7% 0.118 285.8)

  10. Step 900

    900 (this color)

    #342E64

    oklch(33.8% 0.092 285.4)

  11. Step 950

    950

    #242241

    oklch(27.1% 0.057 284.9)

Export this scale for Tailwind in the Tailwind colors tool

#342E64 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)#1637660.044
Deuteranopia (no green cones)#1434630.044
Tritanopia (no blue cones)#2539440.077
Achromatopsia (no color)#3535350.092

Harmonies

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

Complementary

The opposite hue (180°).

  • #342E64

    #342E64

    oklch(33.8% 0.092 285.4)

  • #3D3900

    #3D3900

    oklch(33.8% 0.072 105.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #342E64

    #342E64

    oklch(33.8% 0.092 285.4)

  • #113765

    #113765

    oklch(33.7% 0.091 255.3)

  • #492657

    #492657

    oklch(33.8% 0.092 315.5)

Open the analogous palette in the generator

Split complementary

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

  • #342E64

    #342E64

    oklch(33.8% 0.092 285.4)

  • #4C3100

    #4C3100

    oklch(33.7% 0.071 75.5)

  • #204107

    #204107

    oklch(33.7% 0.092 135.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #342E64

    #342E64

    oklch(33.8% 0.092 285.4)

  • #5C2404

    #5C2404

    oklch(33.8% 0.092 45.3)

  • #00422E

    #00422E

    oklch(33.6% 0.07 165.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #342E64

    #342E64

    oklch(33.8% 0.092 285.4)

  • #5E1F27

    #5E1F27

    oklch(33.9% 0.092 15.9)

  • #3D3900

    #3D3900

    oklch(33.8% 0.072 105.2)

  • #004041

    #004041

    oklch(33.7% 0.057 196.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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