#402361
Closest named color: Royal Purple (#4B006E). oklch(32.8% 0.107 302.4), rgb(64, 35, 97).
Aa
White text reads best on this color (12.87:1).
About this color
#402361 is a dark, moderately saturated purple. In OKLCH its lightness is 33%, its chroma 0.107 and its hue 302°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Royal Purple (#4B006E), ΔE 0.058 away. White text reads best on it, at 12.87:1.
| Hue family | Purples |
| Lightness | dark (33%) |
| Chroma | moderately saturated (0.107) |
| Temperature | in between |
| Nearest name | Royal Purple (#4B006E) |
| Black text | 1.63:1 |
| White text | 12.87:1 |
Values
| HEX | #402361 |
| RGB | rgb(64, 35, 97) |
| HSL | hsl(268, 47%, 26%) |
| OKLCH | oklch(32.8% 0.107 302.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 #402361 | 12.87:1 | AAA | Lc -102.1 | Preferred for body text |
| Black text on #402361 | 1.63:1 | Fails | Lc 0.0 | Not readable |
| #402361 text on white | 12.87:1 | AAA | Lc 98.7 | Preferred for body text |
| #402361 text on black | 1.63: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
#F7F4FC
oklch(97.2% 0.011 303.1)
-
Step 100
100
#EDE6F7
oklch(93.5% 0.024 304.5)
-
Step 200
200
#DED3F2
oklch(88.5% 0.044 301.7)
-
Step 300
300
#CAB5EC
oklch(80.9% 0.079 302.1)
-
Step 400
400
#B08CE2
oklch(70.7% 0.128 302.5)
-
Step 500
500
#9D6DDA
oklch(63.1% 0.163 302.3)
-
Step 600
600
#8952C7
oklch(55.6% 0.177 302.7)
-
Step 700
700
#7442AC
oklch(49.2% 0.164 302.5)
-
Step 800
800
#5E378C
oklch(42.7% 0.137 302.1)
-
Step 900
900 (this color)
#402361
oklch(32.8% 0.107 302.4)
-
Step 950
950
#2D1D41
oklch(27% 0.067 302.7)
#402361 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) | #033163 | 0.084 |
| Deuteranopia (no green cones) | #123260 | 0.076 |
| Tritanopia (no blue cones) | #3A303E | 0.080 |
| Achromatopsia (no color) | #323232 | 0.107 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #402361
#402361
oklch(32.8% 0.107 302.4)
- #2E3B00
#2E3B00
oklch(32.9% 0.08 122.4)
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 #402361, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Royal Purple #4B006E ΔE 0.058
- Plum Purple #4E0550 ΔE 0.063
- Deep Violet #490648 ΔE 0.068
- Grape Purple #5D1451 ΔE 0.071
- Indigo #4B0082 ΔE 0.074
- Prussian Blue #1D3557 ΔE 0.076
- Space Cadet #2B2D42 ΔE 0.077
- Eggplant Purple #430541 ΔE 0.077
Use #402361 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.