#403F5D
Closest named color: Dark Grey Blue (#29465B). oklch(38.2% 0.051 285.3), rgb(64, 63, 93).
Aa
White text reads best on this color (10.06:1).
About this color
#403F5D is a dark, muted purple. In OKLCH its lightness is 38%, its chroma 0.051 and its hue 285°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Grey Blue (#29465B), ΔE 0.038 away. White text reads best on it, at 10.06:1.
| Hue family | Purples |
| Lightness | dark (38%) |
| Chroma | muted (0.051) |
| Temperature | cool |
| Nearest name | Dark Grey Blue (#29465B) |
| Black text | 2.08:1 |
| White text | 10.06:1 |
Values
| HEX | #403F5D |
| RGB | rgb(64, 63, 93) |
| HSL | hsl(242, 19%, 31%) |
| OKLCH | oklch(38.2% 0.051 285.3) |
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 #403F5D | 10.06:1 | AAA | Lc -97.4 | Preferred for body text |
| Black text on #403F5D | 2.08:1 | Fails | Lc 10.6 | Not readable |
| #403F5D text on white | 10.06:1 | AAA | Lc 93.3 | Preferred for body text |
| #403F5D text on black | 2.08:1 | Fails | Lc -9.2 | 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
#F5F5F9
oklch(97.1% 0.005 286.3)
-
Step 100
100
#E9E9F1
oklch(93.6% 0.011 286.2)
-
Step 200
200
#D7D7E7
oklch(88.4% 0.022 285.9)
-
Step 300
300
#BEBED9
oklch(81% 0.038 285.5)
-
Step 400
400
#9C9CC6
oklch(70.8% 0.061 284.7)
-
Step 500
500
#8483B7
oklch(63.1% 0.078 284.8)
-
Step 600
600
#6E6CA3
oklch(55.6% 0.085 285)
-
Step 700
700
#5C5A8C
oklch(49.1% 0.079 284.9)
-
Step 800
800
#4B4A71
oklch(42.7% 0.064 284.5)
-
Step 900
900 (this color)
#403F5D
oklch(38.2% 0.051 285.3)
-
Step 950
950
#252436
oklch(27% 0.033 286.5)
#403F5D 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) | #37435E | 0.017 |
| Deuteranopia (no green cones) | #36415C | 0.016 |
| Tritanopia (no blue cones) | #39444A | 0.043 |
| Achromatopsia (no color) | #424242 | 0.051 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #403F5D
#403F5D
oklch(38.2% 0.051 285.3)
- #474423
#474423
oklch(38.1% 0.05 103.9)
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 #403F5D, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Grey Blue #29465B ΔE 0.038
- Charcoal #264653 ΔE 0.047
- Charcoal Grey #3C4142 ΔE 0.051
- Onyx #343A40 ΔE 0.055
- Dark Blue Grey #1F3B4D ΔE 0.058
- Prussian Blue #1D3557 ΔE 0.064
- Dark Slate Gray #2F4F4F ΔE 0.066
- Twilight Blue #0A437A ΔE 0.071
Use #403F5D 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.