#40253D
Closest named color: Space Cadet (#2B2D42). oklch(30.9% 0.056 330.9), rgb(64, 37, 61).
Aa
White text reads best on this color (13.54:1).
About this color
#40253D is a dark, muted purple. In OKLCH its lightness is 31%, its chroma 0.056 and its hue 331°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.044 away. White text reads best on it, at 13.54:1.
| Hue family | Purples |
| Lightness | dark (31%) |
| Chroma | muted (0.056) |
| Temperature | in between |
| Nearest name | Space Cadet (#2B2D42) |
| Black text | 1.55:1 |
| White text | 13.54:1 |
Values
| HEX | #40253D |
| RGB | rgb(64, 37, 61) |
| HSL | hsl(307, 27%, 20%) |
| OKLCH | oklch(30.9% 0.056 330.9) |
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 #40253D | 13.54:1 | AAA | Lc -103.1 | Preferred for body text |
| Black text on #40253D | 1.55:1 | Fails | Lc 0.0 | Not readable |
| #40253D text on white | 13.54:1 | AAA | Lc 99.9 | Preferred for body text |
| #40253D text on black | 1.55: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
#F2E5F0
oklch(93.5% 0.02 330.7)
-
Step 200
200
#E8D1E5
oklch(88.5% 0.037 330.1)
-
Step 300
300
#DAB2D5
oklch(81% 0.066 330.3)
-
Step 400
400
#C788BF
oklch(70.8% 0.106 331.2)
-
Step 500
500
#B768AF
oklch(63% 0.136 330.8)
-
Step 600
600
#A24E9A
oklch(55.5% 0.147 331)
-
Step 700
700
#8B3F84
oklch(49.2% 0.136 331)
-
Step 800
800
#71346B
oklch(42.7% 0.114 331.2)
-
Step 900
900
#5B2E57
oklch(37.6% 0.088 330.5)
-
Step 950
950 (this color)
#40253D
oklch(30.9% 0.056 330.9)
#40253D 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) | #242C3E | 0.054 |
| Deuteranopia (no green cones) | #2B303C | 0.050 |
| Tritanopia (no blue cones) | #42272E | 0.030 |
| Achromatopsia (no color) | #2E2E2E | 0.056 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40253D
#40253D
oklch(30.9% 0.056 330.9)
- #183821
#183821
oklch(30.9% 0.056 151)
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 #40253D, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Space Cadet #2B2D42 ΔE 0.044
- Gunmetal #293241 ΔE 0.054
- Onyx #343A40 ΔE 0.067
- Oxford Blue #1B263B ΔE 0.069
- Aubergine #3D0734 ΔE 0.070
- Eggplant Purple #430541 ΔE 0.070
- Deep Violet #490648 ΔE 0.070
- Jet #212529 ΔE 0.072
Use #40253D 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.