#402E7F
Closest named color: Dark Slate Blue (#483D8B). oklch(37% 0.131 288.6), rgb(64, 46, 127).
Aa
White text reads best on this color (10.96:1).
About this color
#402E7F is a dark, moderately saturated purple. In OKLCH its lightness is 37%, its chroma 0.131 and its hue 289°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.045 away. White text reads best on it, at 10.96:1.
| Hue family | Purples |
| Lightness | dark (37%) |
| Chroma | moderately saturated (0.131) |
| Temperature | cool |
| Nearest name | Dark Slate Blue (#483D8B) |
| Black text | 1.91:1 |
| White text | 10.96:1 |
Values
| HEX | #402E7F |
| RGB | rgb(64, 46, 127) |
| HSL | hsl(253, 47%, 34%) |
| OKLCH | oklch(37% 0.131 288.6) |
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 #402E7F | 10.96:1 | AAA | Lc -98.9 | Preferred for body text |
| Black text on #402E7F | 1.91:1 | Fails | Lc 8.9 | Not readable |
| #402E7F text on white | 10.96:1 | AAA | Lc 95.0 | Preferred for body text |
| #402E7F text on black | 1.91:1 | Fails | Lc -7.6 | 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
#F5F4FE
oklch(97.1% 0.013 290.8)
-
Step 100
100
#E9E7FC
oklch(93.6% 0.028 290.2)
-
Step 200
200
#D7D4FC
oklch(88.5% 0.055 288.7)
-
Step 300
300
#BEB7FD
oklch(81% 0.098 288.6)
-
Step 400
400
#9E8EFB
oklch(70.7% 0.156 288.5)
-
Step 500
500
#896DF9
oklch(63.2% 0.2 288.5)
-
Step 600
600
#754FE8
oklch(55.6% 0.218 288.6)
-
Step 700
700
#633EC9
oklch(49.1% 0.203 288.9)
-
Step 800
800
#5035A3
oklch(42.7% 0.168 288.5)
-
Step 900
900 (this color)
#402E7F
oklch(37% 0.131 288.6)
-
Step 950
950
#261D4C
oklch(27% 0.083 288.3)
#402E7F 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) | #003E82 | 0.072 |
| Deuteranopia (no green cones) | #003A7D | 0.071 |
| Tritanopia (no blue cones) | #2B4152 | 0.107 |
| Achromatopsia (no color) | #3C3C3C | 0.131 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #402E7F
#402E7F
oklch(37% 0.131 288.6)
- #444300
#444300
oklch(37.2% 0.081 108.8)
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 #402E7F, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Slate Blue #483D8B ΔE 0.045
- Blueberry #464196 ΔE 0.060
- Indigo #4B0082 ΔE 0.068
- Cobalt #1E488F ΔE 0.077
- Twilight Blue #0A437A ΔE 0.077
- Imperial Purple #480CA8 ΔE 0.080
- Royal Purple #4B006E ΔE 0.080
- Marine Blue #01386A ΔE 0.083
Use #402E7F 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.