#331D42
Closest named color: Space Cadet (#2B2D42). oklch(27.8% 0.071 310), rgb(51, 29, 66).
Aa
White text reads best on this color (15.05:1).
About this color
#331D42 is a dark, moderately saturated purple. In OKLCH its lightness is 28%, its chroma 0.071 and its hue 310°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.050 away. White text reads best on it, at 15.05:1.
| Hue family | Purples |
| Lightness | dark (28%) |
| Chroma | moderately saturated (0.071) |
| Temperature | in between |
| Nearest name | Space Cadet (#2B2D42) |
| Black text | 1.39:1 |
| White text | 15.05:1 |
Values
| HEX | #331D42 |
| RGB | rgb(51, 29, 66) |
| HSL | hsl(276, 39%, 19%) |
| OKLCH | oklch(27.8% 0.071 310) |
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 #331D42 | 15.05:1 | AAA | Lc -104.6 | Preferred for body text |
| Black text on #331D42 | 1.39:1 | Fails | Lc 0.0 | Not readable |
| #331D42 text on white | 15.05:1 | AAA | Lc 101.8 | Preferred for body text |
| #331D42 text on black | 1.39: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
#F8F3FB
oklch(97% 0.012 313.2)
-
Step 100
100
#EFE6F6
oklch(93.7% 0.023 310.7)
-
Step 200
200
#E3D1F1
oklch(88.5% 0.047 310.5)
-
Step 300
300
#D1B2E9
oklch(80.9% 0.083 310.1)
-
Step 400
400
#BA88DF
oklch(70.8% 0.134 309.7)
-
Step 500
500
#A967D5
oklch(63.1% 0.17 310.1)
-
Step 600
600
#944BC2
oklch(55.6% 0.185 310)
-
Step 700
700
#7E3BA8
oklch(49.1% 0.172 309.8)
-
Step 800
800
#673288
oklch(42.8% 0.143 310.1)
-
Step 900
900
#542D6D
oklch(37.8% 0.111 310.3)
-
Step 950
950 (this color)
#331D42
oklch(27.8% 0.071 310)
#331D42 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) | #142543 | 0.056 |
| Deuteranopia (no green cones) | #1A2741 | 0.052 |
| Tritanopia (no blue cones) | #31232C | 0.050 |
| Achromatopsia (no color) | #262626 | 0.071 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #331D42
#331D42
oklch(27.8% 0.071 310)
- #1C2F03
#1C2F03
oklch(27.8% 0.071 130.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 #331D42, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Space Cadet #2B2D42 ΔE 0.050
- Eggplant #380835 ΔE 0.050
- Dark Purple #35063E ΔE 0.050
- Oxford Blue #1B263B ΔE 0.053
- Aubergine #3D0734 ΔE 0.053
- Eggplant Purple #430541 ΔE 0.055
- Deep Purple #36013F ΔE 0.059
- Dark #1B2431 ΔE 0.061
Use #331D42 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.