#40386A
Closest named color: Dark Slate Blue (#483D8B). oklch(37.4% 0.084 289), rgb(64, 56, 106).
Aa
White text reads best on this color (10.54:1).
About this color
#40386A is a dark, moderately saturated purple. In OKLCH its lightness is 37%, its chroma 0.084 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.058 away. White text reads best on it, at 10.54:1.
| Hue family | Purples |
| Lightness | dark (37%) |
| Chroma | moderately saturated (0.084) |
| Temperature | cool |
| Nearest name | Dark Slate Blue (#483D8B) |
| Black text | 1.99:1 |
| White text | 10.54:1 |
Values
| HEX | #40386A |
| RGB | rgb(64, 56, 106) |
| HSL | hsl(250, 31%, 32%) |
| OKLCH | oklch(37.4% 0.084 289) |
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 #40386A | 10.54:1 | AAA | Lc -98.3 | Preferred for body text |
| Black text on #40386A | 1.99:1 | Fails | Lc 9.6 | Not readable |
| #40386A text on white | 10.54:1 | AAA | Lc 94.4 | Preferred for body text |
| #40386A text on black | 1.99:1 | Fails | Lc -8.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
#F5F5FB
oklch(97.2% 0.008 286.3)
-
Step 100
100
#E9E8F6
oklch(93.6% 0.019 289.3)
-
Step 200
200
#D8D6EF
oklch(88.5% 0.034 289.4)
-
Step 300
300
#BFBBE7
oklch(81% 0.062 289.1)
-
Step 400
400
#9E96DC
oklch(70.7% 0.101 288.8)
-
Step 500
500
#887BD2
oklch(63.2% 0.128 289)
-
Step 600
600
#7262BF
oklch(55.5% 0.14 288.9)
-
Step 700
700
#6051A5
oklch(49.1% 0.13 288.9)
-
Step 800
800
#4E4385
oklch(42.7% 0.106 288.7)
-
Step 900
900 (this color)
#40386A
oklch(37.4% 0.084 289)
-
Step 950
950
#26223F
oklch(27.2% 0.053 288.7)
#40386A 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) | #27406C | 0.040 |
| Deuteranopia (no green cones) | #273E69 | 0.039 |
| Tritanopia (no blue cones) | #35424C | 0.070 |
| Achromatopsia (no color) | #3F3F3F | 0.084 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40386A
#40386A
oklch(37.4% 0.084 289)
- #444400
#444400
oklch(37.4% 0.082 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 #40386A, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Slate Blue #483D8B ΔE 0.058
- Dark Grey Blue #29465B ΔE 0.063
- Prussian Blue #1D3557 ΔE 0.064
- Twilight Blue #0A437A ΔE 0.065
- Marine Blue #01386A ΔE 0.070
- Dark Blue Grey #1F3B4D ΔE 0.074
- Charcoal #264653 ΔE 0.075
- Blueberry #464196 ΔE 0.076
Use #40386A 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.