#40406A
Closest named color: Dark Grey Blue (#29465B). oklch(39.1% 0.07 282.7), rgb(64, 64, 106).
Aa
White text reads best on this color (9.72:1).
About this color
#40406A is a dark, moderately saturated purple. In OKLCH its lightness is 39%, its chroma 0.070 and its hue 283°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Grey Blue (#29465B), ΔE 0.048 away. White text reads best on it, at 9.72:1.
| Hue family | Purples |
| Lightness | dark (39%) |
| Chroma | moderately saturated (0.070) |
| Temperature | cool |
| Nearest name | Dark Grey Blue (#29465B) |
| Black text | 2.15:1 |
| White text | 9.72:1 |
Values
| HEX | #40406A |
| RGB | rgb(64, 64, 106) |
| HSL | hsl(240, 25%, 33%) |
| OKLCH | oklch(39.1% 0.07 282.7) |
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 #40406A | 9.72:1 | AAA | Lc -96.7 | Preferred for body text |
| Black text on #40406A | 2.15:1 | Fails | Lc 11.5 | Not readable |
| #40406A text on white | 9.72:1 | AAA | Lc 92.5 | Preferred for body text |
| #40406A text on black | 2.15:1 | Fails | Lc -9.9 | 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 900.
-
Step 50
50
#F4F5FA
oklch(97.1% 0.007 277.2)
-
Step 100
100
#E8E9F4
oklch(93.6% 0.015 281.9)
-
Step 200
200
#D6D7ED
oklch(88.5% 0.03 283.7)
-
Step 300
300
#BBBDE3
oklch(80.9% 0.053 282.8)
-
Step 400
400
#989AD4
oklch(70.6% 0.084 282.5)
-
Step 500
500
#8080C9
oklch(63% 0.109 282.8)
-
Step 600
600
#6A69B6
oklch(55.7% 0.118 282.5)
-
Step 700
700
#59579C
oklch(49.1% 0.109 283)
-
Step 800
800
#48477F
oklch(42.6% 0.091 282.6)
-
Step 900
900 (this color)
#40406A
oklch(39.1% 0.07 282.7)
-
Step 950
950
#23233C
oklch(26.9% 0.046 282.9)
#40406A 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) | #32466C | 0.025 |
| Deuteranopia (no green cones) | #304369 | 0.024 |
| Tritanopia (no blue cones) | #344850 | 0.061 |
| Achromatopsia (no color) | #444444 | 0.071 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40406A
#40406A
oklch(39.1% 0.07 282.7)
- #4D4713
#4D4713
oklch(39.3% 0.071 102.7)
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 #40406A, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Grey Blue #29465B ΔE 0.048
- Dark Slate Blue #483D8B ΔE 0.059
- Twilight Blue #0A437A ΔE 0.060
- Charcoal #264653 ΔE 0.061
- Light Navy #155084 ΔE 0.067
- Dusk #4E5481 ΔE 0.070
- Prussian Blue #1D3557 ΔE 0.071
- Cobalt #1E488F ΔE 0.071
Use #40406A 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.