#402334

Closest named color: Space Cadet (#2B2D42). oklch(30.1% 0.051 344.5), rgb(64, 35, 52).

Aa

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

About this color

#402334 is a dark, muted purple. In OKLCH its lightness is 30%, its chroma 0.051 and its hue 345°. Its hue sits on the warm side of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.049 away. White text reads best on it, at 13.92:1.

Hue familyPurples
Lightnessdark (30%)
Chromamuted (0.051)
Temperaturewarm
Nearest nameSpace Cadet (#2B2D42)
Black text1.50:1
White text13.92:1

Values

HEX#402334
RGBrgb(64, 35, 52)
HSLhsl(325, 29%, 19%)
OKLCHoklch(30.1% 0.051 344.5)

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 #402334 13.92:1 AAA Lc -103.5 Preferred for body text
Black text on #402334 1.50:1 Fails Lc 0.0 Not readable
#402334 text on white 13.92:1 AAA Lc 100.4 Preferred for body text
#402334 text on black 1.50: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

    #FAF3F7

    oklch(97.1% 0.009 341.8)

  2. Step 100

    100

    #F3E5ED

    oklch(93.5% 0.018 342)

  3. Step 200

    200

    #EAD1DE

    oklch(88.5% 0.033 345)

  4. Step 300

    300

    #DEB1CA

    oklch(80.8% 0.061 344.1)

  5. Step 400

    400

    #CC88AF

    oklch(70.7% 0.097 344.5)

  6. Step 500

    500

    #BD699B

    oklch(63.1% 0.123 344.6)

  7. Step 600

    600

    #A84F86

    oklch(55.6% 0.134 344.4)

  8. Step 700

    700

    #903F71

    oklch(49.1% 0.125 344.7)

  9. Step 800

    800

    #75345C

    oklch(42.6% 0.104 344.6)

  10. Step 900

    900

    #5F2E4C

    oklch(37.7% 0.082 344.2)

  11. Step 950

    950 (this color)

    #402334

    oklch(30.1% 0.051 344.5)

Export this scale for Tailwind in the Tailwind colors tool

#402334 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)#2529350.053
Deuteranopia (no green cones)#2C2E330.050
Tritanopia (no blue cones)#4323290.021
Achromatopsia (no color)#2C2C2C0.052

Harmonies

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

Complementary

The opposite hue (180°).

  • #402334

    #402334

    oklch(30.1% 0.051 344.5)

  • #103627

    #103627

    oklch(30.1% 0.051 164.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402334

    #402334

    oklch(30.1% 0.051 344.5)

  • #372640

    #372640

    oklch(30.1% 0.051 313.4)

  • #442326

    #442326

    oklch(30.1% 0.05 14.7)

Open the analogous palette in the generator

Split complementary

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

  • #402334

    #402334

    oklch(30.1% 0.051 344.5)

  • #233418

    #233418

    oklch(30.2% 0.052 134.2)

  • #003636

    #003636

    oklch(30.1% 0.051 194.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402334

    #402334

    oklch(30.1% 0.051 344.5)

  • #322F0D

    #322F0D

    oklch(30% 0.051 104.3)

  • #083341

    #083341

    oklch(30% 0.051 224.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402334

    #402334

    oklch(30.1% 0.051 344.5)

  • #3D2A0D

    #3D2A0D

    oklch(30.1% 0.051 74.9)

  • #103627

    #103627

    oklch(30.1% 0.051 164.1)

  • #1B2F47

    #1B2F47

    oklch(30.1% 0.051 253.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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