#40203E

Closest named color: Space Cadet (#2B2D42). oklch(30% 0.068 329.4), rgb(64, 32, 62).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (30%)
Chromamuted (0.068)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.49:1
White text14.05:1

Values

HEX#40203E
RGBrgb(64, 32, 62)
HSLhsl(304, 33%, 19%)
OKLCHoklch(30% 0.068 329.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 #40203E 14.05:1 AAA Lc -103.6 Preferred for body text
Black text on #40203E 1.49:1 Fails Lc 0.0 Not readable
#40203E text on white 14.05:1 AAA Lc 100.5 Preferred for body text
#40203E text on black 1.49: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

    #FAF3F9

    oklch(97.1% 0.011 330.1)

  2. Step 100

    100

    #F3E5F1

    oklch(93.6% 0.022 330.3)

  3. Step 200

    200

    #EBCFE8

    oklch(88.5% 0.045 329.4)

  4. Step 300

    300

    #DEAEDA

    oklch(80.8% 0.081 329.1)

  5. Step 400

    400

    #CD82C7

    oklch(70.7% 0.128 329.7)

  6. Step 500

    500

    #BE60B9

    oklch(63.2% 0.164 329.3)

  7. Step 600

    600

    #A943A5

    oklch(55.6% 0.178 329.2)

  8. Step 700

    700

    #91348D

    oklch(49.2% 0.165 329.5)

  9. Step 800

    800

    #762C72

    oklch(42.7% 0.137 329.8)

  10. Step 900

    900

    #5F295D

    oklch(37.7% 0.107 328.9)

  11. Step 950

    950 (this color)

    #40203E

    oklch(30% 0.068 329.4)

Export this scale for Tailwind in the Tailwind colors tool

#40203E 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)#1E293F0.066
Deuteranopia (no green cones)#272D3D0.059
Tritanopia (no blue cones)#42232C0.037
Achromatopsia (no color)#2C2C2C0.068

Harmonies

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

Complementary

The opposite hue (180°).

  • #40203E

    #40203E

    oklch(30% 0.068 329.4)

  • #0F371A

    #0F371A

    oklch(30% 0.068 149.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40203E

    #40203E

    oklch(30% 0.068 329.4)

  • #33254A

    #33254A

    oklch(30% 0.067 299.8)

  • #481D2D

    #481D2D

    oklch(29.9% 0.069 358.6)

Open the analogous palette in the generator

Split complementary

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

  • #40203E

    #40203E

    oklch(30% 0.068 329.4)

  • #2A3203

    #2A3203

    oklch(29.9% 0.067 119.2)

  • #00362E

    #00362E

    oklch(29.8% 0.054 179.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40203E

    #40203E

    oklch(30% 0.068 329.4)

  • #3A2C00

    #3A2C00

    oklch(30.1% 0.061 89.8)

  • #00353C

    #00353C

    oklch(30.1% 0.052 209)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40203E

    #40203E

    oklch(30% 0.068 329.4)

  • #462403

    #462403

    oklch(30% 0.068 59.2)

  • #0F371A

    #0F371A

    oklch(30% 0.068 149.4)

  • #00314C

    #00314C

    oklch(29.9% 0.069 240.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40203E 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.