#40203C
Closest named color: Space Cadet (#2B2D42). oklch(29.9% 0.065 331.8), rgb(64, 32, 60).
Aa
White text reads best on this color (14.09:1).
About this color
#40203C is a dark, muted purple. In OKLCH its lightness is 30%, its chroma 0.065 and its hue 332°. 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.09:1.
| Hue family | Purples |
| Lightness | dark (30%) |
| Chroma | muted (0.065) |
| Temperature | in between |
| Nearest name | Space Cadet (#2B2D42) |
| Black text | 1.48:1 |
| White text | 14.09:1 |
Values
| HEX | #40203C |
| RGB | rgb(64, 32, 60) |
| HSL | hsl(308, 33%, 19%) |
| OKLCH | oklch(29.9% 0.065 331.8) |
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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #40203C | 14.09:1 | AAA | Lc -103.6 | Preferred for body text |
| Black text on #40203C | 1.48:1 | Fails | Lc 0.0 | Not readable |
| #40203C text on white | 14.09:1 | AAA | Lc 100.6 | Preferred for body text |
| #40203C text on black | 1.48: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.
-
Step 50
50
#FAF3F9
oklch(97.1% 0.011 330.1)
-
Step 100
100
#F3E5F1
oklch(93.6% 0.022 330.3)
-
Step 200
200
#EBCFE6
oklch(88.5% 0.044 331.9)
-
Step 300
300
#DFAFD7
oklch(81% 0.077 332)
-
Step 400
400
#CD83C3
oklch(70.7% 0.123 331.7)
-
Step 500
500
#BF61B4
oklch(63.2% 0.158 331.8)
-
Step 600
600
#AA449F
oklch(55.6% 0.172 332)
-
Step 700
700
#923588
oklch(49.2% 0.16 332.2)
-
Step 800
800
#762D6F
oklch(42.7% 0.133 331.5)
-
Step 900
900
#60295A
oklch(37.7% 0.104 331.7)
-
Step 950
950 (this color)
#40203C
oklch(29.9% 0.065 331.8)
#40203C 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.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #1F293D | 0.065 |
| Deuteranopia (no green cones) | #282D3B | 0.058 |
| Tritanopia (no blue cones) | #42222B | 0.034 |
| Achromatopsia (no color) | #2B2B2B | 0.066 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40203C
#40203C
oklch(29.9% 0.065 331.8)
- #0E371C
#0E371C
oklch(30% 0.066 151.4)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #40203C, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Space Cadet #2B2D42 ΔE 0.052
- Aubergine #3D0734 ΔE 0.056
- Eggplant Purple #430541 ΔE 0.057
- Deep Violet #490648 ΔE 0.059
- Eggplant #380835 ΔE 0.060
- Gunmetal #293241 ΔE 0.065
- Dark Plum #3F012C ΔE 0.067
- Plum Purple #4E0550 ΔE 0.068
Use #40203C 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.