#40245E
Closest named color: Plum Purple (#4E0550). oklch(32.7% 0.101 303.6), rgb(64, 36, 94).
Aa
White text reads best on this color (12.86:1).
About this color
#40245E is a dark, moderately saturated purple. In OKLCH its lightness is 33%, its chroma 0.101 and its hue 304°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Plum Purple (#4E0550), ΔE 0.062 away. White text reads best on it, at 12.86:1.
| Hue family | Purples |
| Lightness | dark (33%) |
| Chroma | moderately saturated (0.101) |
| Temperature | in between |
| Nearest name | Plum Purple (#4E0550) |
| Black text | 1.63:1 |
| White text | 12.86:1 |
Values
| HEX | #40245E |
| RGB | rgb(64, 36, 94) |
| HSL | hsl(269, 45%, 25%) |
| OKLCH | oklch(32.7% 0.101 303.6) |
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 #40245E | 12.86:1 | AAA | Lc -102.1 | Preferred for body text |
| Black text on #40245E | 1.63:1 | Fails | Lc 0.0 | Not readable |
| #40245E text on white | 12.86:1 | AAA | Lc 98.7 | Preferred for body text |
| #40245E 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
#F7F4FB
oklch(97.1% 0.01 305.4)
-
Step 100
100
#EDE7F6
oklch(93.7% 0.021 304)
-
Step 200
200
#DFD3F0
oklch(88.5% 0.041 304.3)
-
Step 300
300
#CBB5E9
oklch(80.9% 0.076 304)
-
Step 400
400
#B18DDE
oklch(70.7% 0.121 303.9)
-
Step 500
500
#9E6ED5
oklch(63.1% 0.156 303.8)
-
Step 600
600
#8954C2
oklch(55.6% 0.168 303.6)
-
Step 700
700
#7444A8
oklch(49.2% 0.156 303.2)
-
Step 800
800
#5E3888
oklch(42.6% 0.13 303.2)
-
Step 900
900 (this color)
#40245E
oklch(32.7% 0.101 303.6)
-
Step 950
950
#2D1D40
oklch(26.9% 0.065 303.4)
#40245E 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) | #0B3160 | 0.079 |
| Deuteranopia (no green cones) | #17325D | 0.072 |
| Tritanopia (no blue cones) | #3A2F3D | 0.074 |
| Achromatopsia (no color) | #323232 | 0.101 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40245E
#40245E
oklch(32.7% 0.101 303.6)
- #2D3B00
#2D3B00
oklch(32.8% 0.081 123.2)
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 #40245E, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Plum Purple #4E0550 ΔE 0.062
- Royal Purple #4B006E ΔE 0.063
- Deep Violet #490648 ΔE 0.066
- Grape Purple #5D1451 ΔE 0.069
- Space Cadet #2B2D42 ΔE 0.072
- Prussian Blue #1D3557 ΔE 0.073
- Eggplant Purple #430541 ΔE 0.075
- Indigo #4B0082 ΔE 0.079
Use #40245E 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.