#40247E
Closest named color: Indigo (#4B0082). oklch(35.4% 0.143 291.7), rgb(64, 36, 126).
Aa
White text reads best on this color (11.85:1).
About this color
#40247E is a dark, vivid purple. In OKLCH its lightness is 35%, its chroma 0.143 and its hue 292°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Indigo (#4B0082), ΔE 0.048 away. White text reads best on it, at 11.85:1.
| Hue family | Purples |
| Lightness | dark (35%) |
| Chroma | vivid (0.143) |
| Temperature | in between |
| Nearest name | Indigo (#4B0082) |
| Black text | 1.77:1 |
| White text | 11.85:1 |
Values
| HEX | #40247E |
| RGB | rgb(64, 36, 126) |
| HSL | hsl(259, 56%, 32%) |
| OKLCH | oklch(35.4% 0.143 291.7) |
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 #40247E | 11.85:1 | AAA | Lc -100.3 | Preferred for body text |
| Black text on #40247E | 1.77:1 | Fails | Lc 0.0 | Not readable |
| #40247E text on white | 11.85:1 | AAA | Lc 96.6 | Preferred for body text |
| #40247E text on black | 1.77: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
#F5F4FF
oklch(97.1% 0.015 290.3)
-
Step 100
100
#EAE7FE
oklch(93.7% 0.031 291.8)
-
Step 200
200
#D9D3FE
oklch(88.5% 0.059 291.5)
-
Step 300
300
#C1B5FF
oklch(81% 0.104 291.3)
-
Step 400
400
#A48AFF
oklch(70.7% 0.167 291.8)
-
Step 500
500
#9066FF
oklch(63.1% 0.217 291.6)
-
Step 600
600
#7D45EF
oklch(55.6% 0.238 291.9)
-
Step 700
700
#6A34D0
oklch(49.1% 0.221 291.9)
-
Step 800
800
#562DA8
oklch(42.7% 0.183 292)
-
Step 900
900 (this color)
#40247E
oklch(35.4% 0.143 291.7)
-
Step 950
950
#291B4E
oklch(27.1% 0.09 292)
#40247E 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) | #003981 | 0.081 |
| Deuteranopia (no green cones) | #00357C | 0.079 |
| Tritanopia (no blue cones) | #2D3B4E | 0.114 |
| Achromatopsia (no color) | #373737 | 0.144 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40247E
#40247E
oklch(35.4% 0.143 291.7)
- #3D3F00
#3D3F00
oklch(35.4% 0.078 111.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 #40247E, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Indigo #4B0082 ΔE 0.048
- Royal Purple #4B006E ΔE 0.062
- Dark Slate Blue #483D8B ΔE 0.065
- Imperial Purple #480CA8 ΔE 0.073
- Blueberry #464196 ΔE 0.079
- Midnight Blue #191970 ΔE 0.081
- Indigo Blue #3A18B1 ΔE 0.087
- Chrysanthemum #560BAD ΔE 0.087
Use #40247E 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.