#401E62
Closest named color: Royal Purple (#4B006E). oklch(32.1% 0.116 303.4), rgb(64, 30, 98).
Aa
White text reads best on this color (13.29:1).
About this color
#401E62 is a dark, moderately saturated purple. In OKLCH its lightness is 32%, its chroma 0.116 and its hue 303°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Royal Purple (#4B006E), ΔE 0.048 away. White text reads best on it, at 13.29:1.
| Hue family | Purples |
| Lightness | dark (32%) |
| Chroma | moderately saturated (0.116) |
| Temperature | in between |
| Nearest name | Royal Purple (#4B006E) |
| Black text | 1.58:1 |
| White text | 13.29:1 |
Values
| HEX | #401E62 |
| RGB | rgb(64, 30, 98) |
| HSL | hsl(270, 53%, 25%) |
| OKLCH | oklch(32.1% 0.116 303.4) |
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 #401E62 | 13.29:1 | AAA | Lc -102.5 | Preferred for body text |
| Black text on #401E62 | 1.58:1 | Fails | Lc 0.0 | Not readable |
| #401E62 text on white | 13.29:1 | AAA | Lc 99.2 | Preferred for body text |
| #401E62 text on black | 1.58: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 950.
-
Step 50
50
#F8F3FF
oklch(97.1% 0.017 304.8)
-
Step 100
100
#EFE4FF
oklch(93.6% 0.038 304.1)
-
Step 200
200
#E2CFFF
oklch(88.5% 0.068 303.1)
-
Step 300
300
#D0AEFF
oklch(80.9% 0.117 303.1)
-
Step 400
400
#BA7EFF
oklch(70.8% 0.188 303.4)
-
Step 500
500
#AA52FF
oklch(63.1% 0.245 303.3)
-
Step 600
600
#9A00F9
oklch(55.6% 0.291 303.4)
-
Step 700
700
#8200D3
oklch(49.1% 0.257 303.5)
-
Step 800
800
#6B00AF
oklch(42.7% 0.224 303.5)
-
Step 900
900
#58118E
oklch(37.8% 0.183 303.6)
-
Step 950
950 (this color)
#401E62
oklch(32.1% 0.116 303.4)
#401E62 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) | #002F64 | 0.090 |
| Deuteranopia (no green cones) | #072F61 | 0.087 |
| Tritanopia (no blue cones) | #392D3D | 0.085 |
| Achromatopsia (no color) | #303030 | 0.116 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #401E62
#401E62
oklch(32.1% 0.116 303.4)
- #2B3900
#2B3900
oklch(32% 0.079 123.5)
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 #401E62, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Royal Purple #4B006E ΔE 0.048
- Plum Purple #4E0550 ΔE 0.057
- Deep Violet #490648 ΔE 0.062
- Indigo #4B0082 ΔE 0.066
- Grape Purple #5D1451 ΔE 0.071
- Eggplant Purple #430541 ΔE 0.072
- Midnight Blue #191970 ΔE 0.081
- Dark Purple #35063E ΔE 0.083
Use #401E62 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.