#402F6D
Closest named color: Dark Slate Blue (#483D8B). oklch(35.8% 0.104 293.1), rgb(64, 47, 109).
Aa
White text reads best on this color (11.37:1).
About this color
#402F6D is a dark, moderately saturated purple. In OKLCH its lightness is 36%, its chroma 0.104 and its hue 293°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.062 away. White text reads best on it, at 11.37:1.
| Hue family | Purples |
| Lightness | dark (36%) |
| Chroma | moderately saturated (0.104) |
| Temperature | in between |
| Nearest name | Dark Slate Blue (#483D8B) |
| Black text | 1.84:1 |
| White text | 11.37:1 |
Values
| HEX | #402F6D |
| RGB | rgb(64, 47, 109) |
| HSL | hsl(256, 40%, 31%) |
| OKLCH | oklch(35.8% 0.104 293.1) |
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 #402F6D | 11.37:1 | AAA | Lc -99.8 | Preferred for body text |
| Black text on #402F6D | 1.84:1 | Fails | Lc 7.9 | Not readable |
| #402F6D text on white | 11.37:1 | AAA | Lc 96.0 | Preferred for body text |
| #402F6D text on black | 1.84: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
#F5F4FC
oklch(97% 0.011 292)
-
Step 100
100
#EAE7F8
oklch(93.5% 0.023 294.1)
-
Step 200
200
#DAD4F4
oklch(88.5% 0.044 294.1)
-
Step 300
300
#C2B8EF
oklch(81% 0.077 292.9)
-
Step 400
400
#A491E7
oklch(70.7% 0.124 293.1)
-
Step 500
500
#8F73DF
oklch(63.1% 0.158 293.3)
-
Step 600
600
#7A59CD
oklch(55.6% 0.172 293.1)
-
Step 700
700
#6748B1
oklch(49.1% 0.16 293.2)
-
Step 800
800
#543C90
oklch(42.8% 0.133 293.1)
-
Step 900
900 (this color)
#402F6D
oklch(35.8% 0.104 293.1)
-
Step 950
950
#281F43
oklch(27% 0.065 293)
#402F6D 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) | #133B6F | 0.064 |
| Deuteranopia (no green cones) | #17396C | 0.061 |
| Tritanopia (no blue cones) | #343C49 | 0.084 |
| Achromatopsia (no color) | #3A3A3A | 0.104 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #402F6D
#402F6D
oklch(35.8% 0.104 293.1)
- #3D4100
#3D4100
oklch(35.9% 0.081 113.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 #402F6D, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Slate Blue #483D8B ΔE 0.062
- Prussian Blue #1D3557 ΔE 0.070
- Marine Blue #01386A ΔE 0.074
- Twilight Blue #0A437A ΔE 0.077
- Royal Purple #4B006E ΔE 0.079
- Blueberry #464196 ΔE 0.080
- Indigo #4B0082 ΔE 0.081
- Marine #042E60 ΔE 0.082
Use #402F6D 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.