#402B7D
Closest named color: Dark Slate Blue (#483D8B). oklch(36.4% 0.132 290), rgb(64, 43, 125).
Aa
White text reads best on this color (11.29:1).
About this color
#402B7D is a dark, moderately saturated purple. In OKLCH its lightness is 36%, its chroma 0.132 and its hue 290°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.052 away. White text reads best on it, at 11.29:1.
| Hue family | Purples |
| Lightness | dark (36%) |
| Chroma | moderately saturated (0.132) |
| Temperature | in between |
| Nearest name | Dark Slate Blue (#483D8B) |
| Black text | 1.85:1 |
| White text | 11.29:1 |
Values
| HEX | #402B7D |
| RGB | rgb(64, 43, 125) |
| HSL | hsl(255, 49%, 33%) |
| OKLCH | oklch(36.4% 0.132 290) |
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 #402B7D | 11.29:1 | AAA | Lc -99.4 | Preferred for body text |
| Black text on #402B7D | 1.85:1 | Fails | Lc 8.3 | Not readable |
| #402B7D text on white | 11.29:1 | AAA | Lc 95.6 | Preferred for body text |
| #402B7D text on black | 1.85: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 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
#D8D4FC
oklch(88.6% 0.055 289.8)
-
Step 300
300
#BFB6FD
oklch(80.9% 0.1 289.8)
-
Step 400
400
#A18DFB
oklch(70.8% 0.157 290.1)
-
Step 500
500
#8C6BF9
oklch(63.1% 0.203 290)
-
Step 600
600
#784DE8
oklch(55.6% 0.221 290.1)
-
Step 700
700
#653CC9
oklch(49% 0.205 290)
-
Step 800
800
#5233A3
oklch(42.6% 0.17 289.9)
-
Step 900
900 (this color)
#402B7D
oklch(36.4% 0.132 290)
-
Step 950
950
#271C4C
oklch(26.9% 0.085 290)
#402B7D 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) | #003C80 | 0.075 |
| Deuteranopia (no green cones) | #00397B | 0.074 |
| Tritanopia (no blue cones) | #2D3E50 | 0.106 |
| Achromatopsia (no color) | #3A3A3A | 0.133 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #402B7D
#402B7D
oklch(36.4% 0.132 290)
- #414100
#414100
oklch(36.3% 0.079 109.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 #402B7D, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Slate Blue #483D8B ΔE 0.052
- Indigo #4B0082 ΔE 0.062
- Blueberry #464196 ΔE 0.068
- Royal Purple #4B006E ΔE 0.073
- Imperial Purple #480CA8 ΔE 0.080
- Twilight Blue #0A437A ΔE 0.082
- Cobalt #1E488F ΔE 0.084
- Marine Blue #01386A ΔE 0.084
Use #402B7D 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.