#402044
Closest named color: Deep Violet (#490648). oklch(30.3% 0.075 323), rgb(64, 32, 68).
Aa
White text reads best on this color (13.92:1).
About this color
#402044 is a dark, moderately saturated purple. In OKLCH its lightness is 30%, its chroma 0.075 and its hue 323°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Deep Violet (#490648), ΔE 0.052 away. White text reads best on it, at 13.92:1.
| Hue family | Purples |
| Lightness | dark (30%) |
| Chroma | moderately saturated (0.075) |
| Temperature | in between |
| Nearest name | Deep Violet (#490648) |
| Black text | 1.50:1 |
| White text | 13.92:1 |
Values
| HEX | #402044 |
| RGB | rgb(64, 32, 68) |
| HSL | hsl(293, 36%, 20%) |
| OKLCH | oklch(30.3% 0.075 323) |
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 #402044 | 13.92:1 | AAA | Lc -103.4 | Preferred for body text |
| Black text on #402044 | 1.50:1 | Fails | Lc 0.0 | Not readable |
| #402044 text on white | 13.92:1 | AAA | Lc 100.3 | Preferred for body text |
| #402044 text on black | 1.50: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
#F9F3FA
oklch(97.1% 0.011 321.3)
-
Step 100
100
#F3E4F4
oklch(93.5% 0.027 323.9)
-
Step 200
200
#EACFEC
oklch(88.6% 0.049 323.8)
-
Step 300
300
#DDAEE2
oklch(81% 0.088 323.2)
-
Step 400
400
#CA80D3
oklch(70.6% 0.142 323)
-
Step 500
500
#BB5DC7
oklch(63.1% 0.179 323)
-
Step 600
600
#A73EB4
oklch(55.6% 0.197 323.1)
-
Step 700
700
#8F2F9B
oklch(49.2% 0.183 323.1)
-
Step 800
800
#74297E
oklch(42.8% 0.151 322.8)
-
Step 900
900
#5E2765
oklch(37.7% 0.118 323)
-
Step 950
950 (this color)
#402044
oklch(30.3% 0.075 323)
#402044 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) | #1B2A45 | 0.070 |
| Deuteranopia (no green cones) | #252E43 | 0.062 |
| Tritanopia (no blue cones) | #41242E | 0.045 |
| Achromatopsia (no color) | #2C2C2C | 0.075 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #402044
#402044
oklch(30.3% 0.075 323)
- #143813
#143813
oklch(30.4% 0.075 143)
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 #402044, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Deep Violet #490648 ΔE 0.052
- Eggplant Purple #430541 ΔE 0.053
- Space Cadet #2B2D42 ΔE 0.054
- Aubergine #3D0734 ΔE 0.058
- Plum Purple #4E0550 ΔE 0.059
- Eggplant #380835 ΔE 0.062
- Dark Purple #35063E ΔE 0.066
- Gunmetal #293241 ΔE 0.067
Use #402044 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.