#40233F
Closest named color: Space Cadet (#2B2D42). oklch(30.6% 0.062 328.2), rgb(64, 35, 63).
Aa
White text reads best on this color (13.72:1).
About this color
#40233F is a dark, muted purple. In OKLCH its lightness is 31%, its chroma 0.062 and its hue 328°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.047 away. White text reads best on it, at 13.72:1.
| Hue family | Purples |
| Lightness | dark (31%) |
| Chroma | muted (0.062) |
| Temperature | in between |
| Nearest name | Space Cadet (#2B2D42) |
| Black text | 1.53:1 |
| White text | 13.72:1 |
Values
| HEX | #40233F |
| RGB | rgb(64, 35, 63) |
| HSL | hsl(302, 29%, 19%) |
| OKLCH | oklch(30.6% 0.062 328.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 #40233F | 13.72:1 | AAA | Lc -103.2 | Preferred for body text |
| Black text on #40233F | 1.53:1 | Fails | Lc 0.0 | Not readable |
| #40233F text on white | 13.72:1 | AAA | Lc 100.1 | Preferred for body text |
| #40233F text on black | 1.53: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
#F9F3F9
oklch(97% 0.01 325.7)
-
Step 100
100
#F2E5F1
oklch(93.6% 0.021 328.1)
-
Step 200
200
#E9D0E7
oklch(88.5% 0.041 328.4)
-
Step 300
300
#DCB0D9
oklch(80.9% 0.075 328.5)
-
Step 400
400
#C985C6
oklch(70.7% 0.119 328.3)
-
Step 500
500
#B964B7
oklch(63% 0.152 328)
-
Step 600
600
#A449A3
oklch(55.6% 0.164 327.9)
-
Step 700
700
#8D398B
oklch(49.1% 0.154 328.5)
-
Step 800
800
#723071
oklch(42.6% 0.127 328.1)
-
Step 900
900
#5D2C5C
oklch(37.8% 0.099 328.1)
-
Step 950
950 (this color)
#40233F
oklch(30.6% 0.062 328.2)
#40233F 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) | #212B40 | 0.060 |
| Deuteranopia (no green cones) | #292F3E | 0.054 |
| Tritanopia (no blue cones) | #42262E | 0.035 |
| Achromatopsia (no color) | #2D2D2D | 0.063 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40233F
#40233F
oklch(30.6% 0.062 328.2)
- #16381D
#16381D
oklch(30.7% 0.062 148.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 #40233F, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Space Cadet #2B2D42 ΔE 0.047
- Gunmetal #293241 ΔE 0.059
- Eggplant Purple #430541 ΔE 0.063
- Deep Violet #490648 ΔE 0.063
- Aubergine #3D0734 ΔE 0.064
- Eggplant #380835 ΔE 0.068
- Oxford Blue #1B263B ΔE 0.070
- Plum Purple #4E0550 ΔE 0.071
Use #40233F 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.