#40227C
Closest named color: Indigo (#4B0082). oklch(34.9% 0.143 292.7), rgb(64, 34, 124).
Aa
White text reads best on this color (12.08:1).
About this color
#40227C is a dark, vivid purple. In OKLCH its lightness is 35%, its chroma 0.143 and its hue 293°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Indigo (#4B0082), ΔE 0.045 away. White text reads best on it, at 12.08:1.
| Hue family | Purples |
| Lightness | dark (35%) |
| Chroma | vivid (0.143) |
| Temperature | in between |
| Nearest name | Indigo (#4B0082) |
| Black text | 1.73:1 |
| White text | 12.08:1 |
Values
| HEX | #40227C |
| RGB | rgb(64, 34, 124) |
| HSL | hsl(260, 57%, 31%) |
| OKLCH | oklch(34.9% 0.143 292.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 #40227C | 12.08:1 | AAA | Lc -100.6 | Preferred for body text |
| Black text on #40227C | 1.73:1 | Fails | Lc 0.0 | Not readable |
| #40227C text on white | 12.08:1 | AAA | Lc 97.0 | Preferred for body text |
| #40227C text on black | 1.73: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
#EAE7FD
oklch(93.7% 0.03 292.1)
-
Step 200
200
#DAD3FE
oklch(88.6% 0.059 292.6)
-
Step 300
300
#C2B4FF
oklch(80.9% 0.105 292.4)
-
Step 400
400
#A689FF
oklch(70.7% 0.169 292.9)
-
Step 500
500
#9264FF
oklch(63% 0.219 292.7)
-
Step 600
600
#7F44EE
oklch(55.6% 0.238 292.9)
-
Step 700
700
#6B33CF
oklch(49% 0.221 292.6)
-
Step 800
800
#572DA8
oklch(42.8% 0.183 292.5)
-
Step 900
900 (this color)
#40227C
oklch(34.9% 0.143 292.7)
-
Step 950
950
#291A4E
oklch(26.9% 0.091 292.5)
#40227C 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) | #00377F | 0.082 |
| Deuteranopia (no green cones) | #00347A | 0.081 |
| Tritanopia (no blue cones) | #2E394C | 0.114 |
| Achromatopsia (no color) | #363636 | 0.144 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40227C
#40227C
oklch(34.9% 0.143 292.7)
- #3B3E00
#3B3E00
oklch(34.9% 0.078 112.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 #40227C, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Indigo #4B0082 ΔE 0.045
- Royal Purple #4B006E ΔE 0.057
- Dark Slate Blue #483D8B ΔE 0.070
- Imperial Purple #480CA8 ΔE 0.076
- Midnight Blue #191970 ΔE 0.078
- Blueberry #464196 ΔE 0.084
- Chrysanthemum #560BAD ΔE 0.090
- Indigo Blue #3A18B1 ΔE 0.090
Use #40227C 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.