#40253A

Closest named color: Space Cadet (#2B2D42). oklch(30.7% 0.053 335.3), rgb(64, 37, 58).

Aa

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

About this color

#40253A is a dark, muted purple. In OKLCH its lightness is 31%, its chroma 0.053 and its hue 335°. Its hue sits on the warm side of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.044 away. White text reads best on it, at 13.60:1.

Hue familyPurples
Lightnessdark (31%)
Chromamuted (0.053)
Temperaturewarm
Nearest nameSpace Cadet (#2B2D42)
Black text1.54:1
White text13.60:1

Values

HEX#40253A
RGBrgb(64, 37, 58)
HSLhsl(313, 27%, 20%)
OKLCHoklch(30.7% 0.053 335.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 #40253A 13.60:1 AAA Lc -103.1 Preferred for body text
Black text on #40253A 1.54:1 Fails Lc 0.0 Not readable
#40253A text on white 13.60:1 AAA Lc 100.0 Preferred for body text
#40253A text on black 1.54: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

    #F9F3F8

    oklch(97% 0.009 330.9)

  2. Step 100

    100

    #F2E6EF

    oklch(93.7% 0.018 334.2)

  3. Step 200

    200

    #E9D1E2

    oklch(88.5% 0.035 336.2)

  4. Step 300

    300

    #DBB2D1

    oklch(80.9% 0.063 334.9)

  5. Step 400

    400

    #C889B9

    oklch(70.8% 0.099 335.6)

  6. Step 500

    500

    #B86AA7

    oklch(63.1% 0.126 335.5)

  7. Step 600

    600

    #A35093

    oklch(55.6% 0.138 335.1)

  8. Step 700

    700

    #8C407D

    oklch(49.2% 0.129 335.5)

  9. Step 800

    800

    #713566

    oklch(42.6% 0.107 334.7)

  10. Step 900

    900

    #5C2F53

    oklch(37.7% 0.083 335)

  11. Step 950

    950 (this color)

    #40253A

    oklch(30.7% 0.053 335.3)

Export this scale for Tailwind in the Tailwind colors tool

#40253A 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)#252B3B0.052
Deuteranopia (no green cones)#2C2F390.047
Tritanopia (no blue cones)#43262D0.026
Achromatopsia (no color)#2E2E2E0.053

Harmonies

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

Complementary

The opposite hue (180°).

  • #40253A

    #40253A

    oklch(30.7% 0.053 335.3)

  • #173724

    #173724

    oklch(30.6% 0.052 155.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40253A

    #40253A

    oklch(30.7% 0.053 335.3)

  • #362845

    #362845

    oklch(30.7% 0.054 305.6)

  • #46242C

    #46242C

    oklch(30.8% 0.053 5.5)

Open the analogous palette in the generator

Split complementary

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

  • #40253A

    #40253A

    oklch(30.7% 0.053 335.3)

  • #293415

    #293415

    oklch(30.6% 0.053 125.5)

  • #023833

    #023833

    oklch(30.7% 0.053 185)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40253A

    #40253A

    oklch(30.7% 0.053 335.3)

  • #382F0C

    #382F0C

    oklch(30.7% 0.052 94.6)

  • #033640

    #033640

    oklch(30.7% 0.052 215)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40253A

    #40253A

    oklch(30.7% 0.053 335.3)

  • #422A10

    #422A10

    oklch(30.9% 0.053 65.7)

  • #173724

    #173724

    oklch(30.6% 0.052 155.6)

  • #173248

    #173248

    oklch(30.7% 0.052 245.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40253A 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.