#403140

Closest named color: Onyx (#343A40). oklch(33.6% 0.033 326.3), rgb(64, 49, 64).

Aa

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

About this color

#403140 is a dark, muted purple. In OKLCH its lightness is 34%, its chroma 0.033 and its hue 326°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Onyx (#343A40), ΔE 0.034 away. White text reads best on it, at 12.12:1.

Hue familyPurples
Lightnessdark (34%)
Chromamuted (0.033)
Temperaturein between
Nearest nameOnyx (#343A40)
Black text1.73:1
White text12.12:1

Values

HEX#403140
RGBrgb(64, 49, 64)
HSLhsl(300, 13%, 22%)
OKLCHoklch(33.6% 0.033 326.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 #403140 12.12:1 AAA Lc -101.2 Preferred for body text
Black text on #403140 1.73:1 Fails Lc 0.0 Not readable
#403140 text on white 12.12:1 AAA Lc 97.7 Preferred for body text
#403140 text on black 1.73: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

    #F7F5F7

    oklch(97.2% 0.003 325.6)

  2. Step 100

    100

    #ECE8EC

    oklch(93.5% 0.007 325.6)

  3. Step 200

    200

    #DED6DE

    oklch(88.5% 0.014 325.7)

  4. Step 300

    300

    #C9BBC9

    oklch(80.8% 0.025 325.8)

  5. Step 400

    400

    #AE98AE

    oklch(70.6% 0.04 326)

  6. Step 500

    500

    #9A7F9A

    oklch(63.1% 0.051 326.2)

  7. Step 600

    600

    #856885

    oklch(55.6% 0.056 326.3)

  8. Step 700

    700

    #705770

    oklch(49.1% 0.05 326.3)

  9. Step 800

    800

    #5B475B

    oklch(42.6% 0.041 326.3)

  10. Step 900

    900 (this color)

    #403140

    oklch(33.6% 0.033 326.3)

  11. Step 950

    950

    #2C232C

    oklch(27% 0.021 326.1)

Export this scale for Tailwind in the Tailwind colors tool

#403140 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)#3035410.029
Deuteranopia (no green cones)#33363F0.027
Tritanopia (no blue cones)#4132360.019
Achromatopsia (no color)#3636360.033

Harmonies

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

Complementary

The opposite hue (180°).

  • #403140

    #403140

    oklch(33.6% 0.033 326.3)

  • #2C3C2D

    #2C3C2D

    oklch(33.7% 0.033 146.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #403140

    #403140

    oklch(33.6% 0.033 326.3)

  • #383346

    #383346

    oklch(33.4% 0.034 296.6)

  • #453037

    #453037

    oklch(33.6% 0.032 357.2)

Open the analogous palette in the generator

Split complementary

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

  • #403140

    #403140

    oklch(33.6% 0.033 326.3)

  • #363925

    #363925

    oklch(33.6% 0.033 115.2)

  • #243D36

    #243D36

    oklch(33.7% 0.034 174.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #403140

    #403140

    oklch(33.6% 0.033 326.3)

  • #3E3623

    #3E3623

    oklch(33.6% 0.033 87.7)

  • #213C3F

    #213C3F

    oklch(33.6% 0.033 204.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #403140

    #403140

    oklch(33.6% 0.033 326.3)

  • #443326

    #443326

    oklch(33.6% 0.033 58.8)

  • #2C3C2D

    #2C3C2D

    oklch(33.7% 0.033 146.4)

  • #263A46

    #263A46

    oklch(33.7% 0.033 235.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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