#40244D
Closest named color: Space Cadet (#2B2D42). oklch(31.6% 0.078 314.2), rgb(64, 36, 77).
Aa
White text reads best on this color (13.31:1).
About this color
#40244D is a dark, moderately saturated purple. In OKLCH its lightness is 32%, its chroma 0.078 and its hue 314°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.053 away. White text reads best on it, at 13.31:1.
| Hue family | Purples |
| Lightness | dark (32%) |
| Chroma | moderately saturated (0.078) |
| Temperature | in between |
| Nearest name | Space Cadet (#2B2D42) |
| Black text | 1.57:1 |
| White text | 13.31:1 |
Values
| HEX | #40244D |
| RGB | rgb(64, 36, 77) |
| HSL | hsl(281, 36%, 22%) |
| OKLCH | oklch(31.6% 0.078 314.2) |
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 #40244D | 13.31:1 | AAA | Lc -102.7 | Preferred for body text |
| Black text on #40244D | 1.57:1 | Fails | Lc 0.0 | Not readable |
| #40244D text on white | 13.31:1 | AAA | Lc 99.5 | Preferred for body text |
| #40244D text on black | 1.57: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
#F9F3FB
oklch(97.1% 0.012 317.7)
-
Step 100
100
#F1E5F7
oklch(93.7% 0.027 314.7)
-
Step 200
200
#E6D0F1
oklch(88.6% 0.05 314.6)
-
Step 300
300
#D7AFEB
oklch(80.9% 0.093 314.3)
-
Step 400
400
#C282E0
oklch(70.6% 0.148 314.3)
-
Step 500
500
#B25FD7
oklch(63.1% 0.188 314.2)
-
Step 600
600
#9D40C5
oklch(55.6% 0.206 313.9)
-
Step 700
700
#8731AA
oklch(49.2% 0.191 314.3)
-
Step 800
800
#6D2A89
oklch(42.6% 0.158 314.2)
-
Step 900
900
#59286E
oklch(37.8% 0.123 314.4)
-
Step 950
950 (this color)
#40244D
oklch(31.6% 0.078 314.2)
#40244D 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) | #1B2E4E | 0.067 |
| Deuteranopia (no green cones) | #23304C | 0.060 |
| Tritanopia (no blue cones) | #3F2A35 | 0.052 |
| Achromatopsia (no color) | #2F2F2F | 0.079 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40244D
#40244D
oklch(31.6% 0.078 314.2)
- #203A0B
#203A0B
oklch(31.6% 0.078 134.1)
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 #40244D, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Space Cadet #2B2D42 ΔE 0.053
- Deep Violet #490648 ΔE 0.058
- Plum Purple #4E0550 ΔE 0.061
- Eggplant Purple #430541 ΔE 0.063
- Gunmetal #293241 ΔE 0.065
- Grape Purple #5D1451 ΔE 0.066
- Prussian Blue #1D3557 ΔE 0.071
- Aubergine #3D0734 ΔE 0.073
Use #40244D 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.