#342457

Closest named color: Space Cadet (#2B2D42). oklch(30.8% 0.089 295.2), rgb(52, 36, 87).

Aa

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

About this color

#342457 is a dark, moderately saturated purple. In OKLCH its lightness is 31%, its chroma 0.089 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.053 away. White text reads best on it, at 13.67:1.

Hue familyPurples
Lightnessdark (31%)
Chromamoderately saturated (0.089)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.53:1
White text13.67:1

Values

HEX#342457
RGBrgb(52, 36, 87)
HSLhsl(259, 41%, 24%)
OKLCHoklch(30.8% 0.089 295.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 #342457 13.67:1 AAA Lc -103.1 Preferred for body text
Black text on #342457 1.53:1 Fails Lc 0.0 Not readable
#342457 text on white 13.67:1 AAA Lc 100.0 Preferred for body text
#342457 text on black 1.53: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

    #F6F4FE

    oklch(97.2% 0.013 295.3)

  2. Step 100

    100

    #EBE6FD

    oklch(93.6% 0.031 295.8)

  3. Step 200

    200

    #DBD2FC

    oklch(88.4% 0.058 295)

  4. Step 300

    300

    #C5B3FE

    oklch(80.9% 0.106 294.9)

  5. Step 400

    400

    #AA88FD

    oklch(70.8% 0.168 295.2)

  6. Step 500

    500

    #9764FA

    oklch(63.1% 0.214 295.2)

  7. Step 600

    600

    #8344E9

    oklch(55.6% 0.232 295.2)

  8. Step 700

    700

    #6F33CB

    oklch(49.1% 0.217 295.1)

  9. Step 800

    800

    #5A2CA4

    oklch(42.6% 0.18 295.1)

  10. Step 900

    900

    #4A2A82

    oklch(37.7% 0.14 295.6)

  11. Step 950

    950 (this color)

    #342457

    oklch(30.8% 0.089 295.2)

Export this scale for Tailwind in the Tailwind colors tool

#342457 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)#0E2E590.057
Deuteranopia (no green cones)#122D560.054
Tritanopia (no blue cones)#2C2E390.070
Achromatopsia (no color)#2E2E2E0.089

Harmonies

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

Complementary

The opposite hue (180°).

  • #342457

    #342457

    oklch(30.8% 0.089 295.2)

  • #2F3300

    #2F3300

    oklch(30.7% 0.069 114.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #342457

    #342457

    oklch(30.8% 0.089 295.2)

  • #192C5C

    #192C5C

    oklch(30.7% 0.089 265.3)

  • #451D48

    #451D48

    oklch(30.8% 0.088 324.7)

Open the analogous palette in the generator

Split complementary

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

  • #342457

    #342457

    oklch(30.8% 0.089 295.2)

  • #3E2D00

    #3E2D00

    oklch(30.8% 0.063 86)

  • #073B0F

    #073B0F

    oklch(30.9% 0.089 145.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #342457

    #342457

    oklch(30.8% 0.089 295.2)

  • #4C2300

    #4C2300

    oklch(30.8% 0.076 54.9)

  • #00392E

    #00392E

    oklch(30.8% 0.058 175)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #342457

    #342457

    oklch(30.8% 0.089 295.2)

  • #541917

    #541917

    oklch(30.8% 0.088 25.6)

  • #2F3300

    #2F3300

    oklch(30.7% 0.069 114.5)

  • #00373C

    #00373C

    oklch(30.7% 0.052 204.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #342457 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.