#403151

Closest named color: Space Cadet (#2B2D42). oklch(34.4% 0.058 305.1), rgb(64, 49, 81).

Aa

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

About this color

#403151 is a dark, muted purple. In OKLCH its lightness is 34%, its chroma 0.058 and its hue 305°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.049 away. White text reads best on it, at 11.82:1.

Hue familyPurples
Lightnessdark (34%)
Chromamuted (0.058)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.77:1
White text11.82:1

Values

HEX#403151
RGBrgb(64, 49, 81)
HSLhsl(268, 25%, 25%)
OKLCHoklch(34.4% 0.058 305.1)

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 #403151 11.82:1 AAA Lc -100.7 Preferred for body text
Black text on #403151 1.77:1 Fails Lc 0.0 Not readable
#403151 text on white 11.82:1 AAA Lc 97.1 Preferred for body text
#403151 text on black 1.77: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

    #F6F4F9

    oklch(97% 0.007 304.2)

  2. Step 100

    100

    #ECE8F1

    oklch(93.7% 0.013 306)

  3. Step 200

    200

    #DDD5E6

    oklch(88.4% 0.025 306.9)

  4. Step 300

    300

    #C7BAD8

    oklch(80.9% 0.044 305)

  5. Step 400

    400

    #AA96C4

    oklch(70.7% 0.069 304.5)

  6. Step 500

    500

    #967CB5

    oklch(63.2% 0.088 304.9)

  7. Step 600

    600

    #8064A0

    oklch(55.5% 0.096 304.9)

  8. Step 700

    700

    #6D5389

    oklch(49.2% 0.089 305.5)

  9. Step 800

    800

    #58446F

    oklch(42.6% 0.073 304.9)

  10. Step 900

    900 (this color)

    #403151

    oklch(34.4% 0.058 305.1)

  11. Step 950

    950

    #2B2235

    oklch(27.1% 0.037 305.8)

Export this scale for Tailwind in the Tailwind colors tool

#403151 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)#2A37520.039
Deuteranopia (no green cones)#2D38500.037
Tritanopia (no blue cones)#3D363D0.044
Achromatopsia (no color)#3737370.058

Harmonies

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

Complementary

The opposite hue (180°).

  • #403151

    #403151

    oklch(34.4% 0.058 305.1)

  • #323E1B

    #323E1B

    oklch(34.4% 0.058 124.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #403151

    #403151

    oklch(34.4% 0.058 305.1)

  • #303657

    #303657

    oklch(34.3% 0.058 275.1)

  • #4B2D45

    #4B2D45

    oklch(34.3% 0.058 334.3)

Open the analogous palette in the generator

Split complementary

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

  • #403151

    #403151

    oklch(34.4% 0.058 305.1)

  • #423911

    #423911

    oklch(34.5% 0.058 96.5)

  • #1D422C

    #1D422C

    oklch(34.5% 0.058 155.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #403151

    #403151

    oklch(34.4% 0.058 305.1)

  • #4D3216

    #4D3216

    oklch(34.3% 0.057 64.8)

  • #06433D

    #06433D

    oklch(34.6% 0.058 184.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #403151

    #403151

    oklch(34.4% 0.058 305.1)

  • #532D24

    #532D24

    oklch(34.4% 0.059 34.2)

  • #323E1B

    #323E1B

    oklch(34.4% 0.058 124.9)

  • #07404C

    #07404C

    oklch(34.4% 0.058 216.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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