#40243A
Closest named color: Space Cadet (#2B2D42). oklch(30.5% 0.055 335.1), rgb(64, 36, 58).
Aa
White text reads best on this color (13.71:1).
About this color
#40243A is a dark, muted purple. In OKLCH its lightness is 31%, its chroma 0.055 and its hue 335°. Its hue sits on the warm side of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.046 away. White text reads best on it, at 13.71:1.
| Hue family | Purples |
| Lightness | dark (31%) |
| Chroma | muted (0.055) |
| Temperature | warm |
| Nearest name | Space Cadet (#2B2D42) |
| Black text | 1.53:1 |
| White text | 13.71:1 |
Values
| HEX | #40243A |
| RGB | rgb(64, 36, 58) |
| HSL | hsl(313, 28%, 20%) |
| OKLCH | oklch(30.5% 0.055 335.1) |
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 #40243A | 13.71:1 | AAA | Lc -103.2 | Preferred for body text |
| Black text on #40243A | 1.53:1 | Fails | Lc 0.0 | Not readable |
| #40243A text on white | 13.71:1 | AAA | Lc 100.1 | Preferred for body text |
| #40243A 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
#F9F3F8
oklch(97% 0.009 330.9)
-
Step 100
100
#F2E5EF
oklch(93.5% 0.019 333.5)
-
Step 200
200
#E9D1E3
oklch(88.6% 0.036 334.5)
-
Step 300
300
#DCB1D1
oklch(80.8% 0.065 335.4)
-
Step 400
400
#C988BA
oklch(70.8% 0.103 335.3)
-
Step 500
500
#BA68A9
oklch(63.1% 0.133 335.2)
-
Step 600
600
#A54E94
oklch(55.7% 0.144 335.3)
-
Step 700
700
#8D3E7E
oklch(49.1% 0.134 335.3)
-
Step 800
800
#733467
oklch(42.8% 0.111 335.1)
-
Step 900
900
#5D2E54
oklch(37.8% 0.087 334.8)
-
Step 950
950 (this color)
#40243A
oklch(30.5% 0.055 335.1)
#40243A 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) | #242B3B | 0.055 |
| Deuteranopia (no green cones) | #2B2F39 | 0.050 |
| Tritanopia (no blue cones) | #43252C | 0.027 |
| Achromatopsia (no color) | #2D2D2D | 0.055 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40243A
#40243A
oklch(30.5% 0.055 335.1)
- #153723
#153723
oklch(30.5% 0.054 155.5)
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 #40243A, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Space Cadet #2B2D42 ΔE 0.046
- Gunmetal #293241 ΔE 0.056
- Aubergine #3D0734 ΔE 0.068
- Onyx #343A40 ΔE 0.068
- Oxford Blue #1B263B ΔE 0.069
- Eggplant Purple #430541 ΔE 0.070
- Jet #212529 ΔE 0.070
- Deep Violet #490648 ΔE 0.071
Use #40243A 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.