#40204C
Closest named color: Deep Violet (#490648). oklch(30.8% 0.085 316.1), rgb(64, 32, 76).
Aa
White text reads best on this color (13.73:1).
About this color
#40204C is a dark, moderately saturated purple. In OKLCH its lightness is 31%, its chroma 0.085 and its hue 316°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Deep Violet (#490648), ΔE 0.049 away. White text reads best on it, at 13.73:1.
| Hue family | Purples |
| Lightness | dark (31%) |
| Chroma | moderately saturated (0.085) |
| Temperature | in between |
| Nearest name | Deep Violet (#490648) |
| Black text | 1.52:1 |
| White text | 13.73:1 |
Values
| HEX | #40204C |
| RGB | rgb(64, 32, 76) |
| HSL | hsl(284, 41%, 21%) |
| OKLCH | oklch(30.8% 0.085 316.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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #40204C | 13.73:1 | AAA | Lc -103.2 | Preferred for body text |
| Black text on #40204C | 1.52:1 | Fails | Lc 0.0 | Not readable |
| #40204C text on white | 13.73:1 | AAA | Lc 100.1 | Preferred for body text |
| #40204C text on black | 1.52: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
#F9F3FC
oklch(97.1% 0.013 314.8)
-
Step 100
100
#F2E4F7
oklch(93.6% 0.029 317.2)
-
Step 200
200
#E8CFF2
oklch(88.6% 0.054 316.3)
-
Step 300
300
#DAADEC
oklch(80.9% 0.099 316.1)
-
Step 400
400
#C77EE3
oklch(70.7% 0.16 316.1)
-
Step 500
500
#B858DB
oklch(63.1% 0.205 316)
-
Step 600
600
#A336C8
oklch(55.5% 0.223 316)
-
Step 700
700
#8C27AD
oklch(49.2% 0.207 316.1)
-
Step 800
800
#72238C
oklch(42.8% 0.171 316.3)
-
Step 900
900
#5C2470
oklch(37.8% 0.133 316)
-
Step 950
950 (this color)
#40204C
oklch(30.8% 0.085 316.1)
#40204C 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) | #162B4D | 0.076 |
| Deuteranopia (no green cones) | #202E4B | 0.067 |
| Tritanopia (no blue cones) | #3F2732 | 0.056 |
| Achromatopsia (no color) | #2D2D2D | 0.085 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40204C
#40204C
oklch(30.8% 0.085 316.1)
- #1A3906
#1A3906
oklch(30.9% 0.084 136.1)
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 #40204C, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Deep Violet #490648 ΔE 0.049
- Plum Purple #4E0550 ΔE 0.053
- Eggplant Purple #430541 ΔE 0.053
- Space Cadet #2B2D42 ΔE 0.059
- Grape Purple #5D1451 ΔE 0.064
- Aubergine #3D0734 ΔE 0.064
- Dark Purple #35063E ΔE 0.067
- Eggplant #380835 ΔE 0.067
Use #40204C 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.