#403955

Closest named color: Onyx (#343A40). oklch(36.4% 0.048 295.4), rgb(64, 57, 85).

Aa

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

About this color

#403955 is a dark, muted purple. In OKLCH its lightness is 36%, its chroma 0.048 and its hue 295°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Onyx (#343A40), ΔE 0.045 away. White text reads best on it, at 10.85:1.

Hue familyPurples
Lightnessdark (36%)
Chromamuted (0.048)
Temperaturein between
Nearest nameOnyx (#343A40)
Black text1.93:1
White text10.85:1

Values

HEX#403955
RGBrgb(64, 57, 85)
HSLhsl(255, 20%, 28%)
OKLCHoklch(36.4% 0.048 295.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 #403955 10.85:1 AAA Lc -99.0 Preferred for body text
Black text on #403955 1.93:1 Fails Lc 8.8 Not readable
#403955 text on white 10.85:1 AAA Lc 95.1 Preferred for body text
#403955 text on black 1.93:1 Fails Lc -7.5 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

    #F5F5F8

    oklch(97.1% 0.004 286.3)

  2. Step 100

    100

    #EAE9F0

    oklch(93.7% 0.009 292.8)

  3. Step 200

    200

    #DAD7E5

    oklch(88.6% 0.019 295.8)

  4. Step 300

    300

    #C2BCD6

    oklch(80.8% 0.037 296.1)

  5. Step 400

    400

    #A39AC1

    oklch(70.7% 0.057 295.5)

  6. Step 500

    500

    #8D81B2

    oklch(63.2% 0.074 295.5)

  7. Step 600

    600

    #776A9E

    oklch(55.7% 0.08 295.1)

  8. Step 700

    700

    #645887

    oklch(49.2% 0.075 295.2)

  9. Step 800

    800

    #52486D

    oklch(42.7% 0.061 296.1)

  10. Step 900

    900 (this color)

    #403955

    oklch(36.4% 0.048 295.4)

  11. Step 950

    950

    #272334

    oklch(26.8% 0.032 295)

Export this scale for Tailwind in the Tailwind colors tool

#403955 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)#323D560.024
Deuteranopia (no green cones)#333D540.024
Tritanopia (no blue cones)#3C3E430.040
Achromatopsia (no color)#3D3D3D0.048

Harmonies

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

Complementary

The opposite hue (180°).

  • #403955

    #403955

    oklch(36.4% 0.048 295.4)

  • #3D4123

    #3D4123

    oklch(36.3% 0.048 115)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #403955

    #403955

    oklch(36.4% 0.048 295.4)

  • #323E58

    #323E58

    oklch(36.5% 0.048 265)

  • #4B354C

    #4B354C

    oklch(36.3% 0.048 325.1)

Open the analogous palette in the generator

Split complementary

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

  • #403955

    #403955

    oklch(36.4% 0.048 295.4)

  • #4A3C1F

    #4A3C1F

    oklch(36.4% 0.048 84.3)

  • #2E452E

    #2E452E

    oklch(36.4% 0.048 144.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #403955

    #403955

    oklch(36.4% 0.048 295.4)

  • #523725

    #523725

    oklch(36.3% 0.048 54.3)

  • #1F473D

    #1F473D

    oklch(36.6% 0.049 175)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #403955

    #403955

    oklch(36.4% 0.048 295.4)

  • #553431

    #553431

    oklch(36.4% 0.048 25.4)

  • #3D4123

    #3D4123

    oklch(36.3% 0.048 115)

  • #1A454A

    #1A454A

    oklch(36.3% 0.048 205.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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