#310D28
Closest named color: Eggplant (#380835). oklch(23.1% 0.07 338.7), rgb(49, 13, 40).
Aa
White text reads best on this color (17.23:1).
About this color
#310D28 is a very dark, moderately saturated purple. In OKLCH its lightness is 23%, its chroma 0.070 and its hue 339°. Its hue sits on the warm side of the wheel. The nearest named color is Eggplant (#380835), ΔE 0.031 away. White text reads best on it, at 17.23:1.
| Hue family | Purples |
| Lightness | very dark (23%) |
| Chroma | moderately saturated (0.070) |
| Temperature | warm |
| Nearest name | Eggplant (#380835) |
| Black text | 1.21:1 |
| White text | 17.23:1 |
Values
| HEX | #310D28 |
| RGB | rgb(49, 13, 40) |
| HSL | hsl(315, 58%, 12%) |
| OKLCH | oklch(23.1% 0.07 338.7) |
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 #310D28 | 17.23:1 | AAA | Lc -106.2 | Preferred for body text |
| Black text on #310D28 | 1.21:1 | Fails | Lc 0.0 | Not readable |
| #310D28 text on white | 17.23:1 | AAA | Lc 103.8 | Preferred for body text |
| #310D28 text on black | 1.21: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
#FBF3F8
oklch(97.2% 0.011 339.3)
-
Step 100
100
#F5E4EF
oklch(93.6% 0.023 338.6)
-
Step 200
200
#EFCEE3
oklch(88.5% 0.046 339.7)
-
Step 300
300
#E5ACD3
oklch(80.9% 0.084 338.4)
-
Step 400
400
#D67EBC
oklch(70.7% 0.133 338.9)
-
Step 500
500
#C85AAB
oklch(63% 0.169 338.7)
-
Step 600
600
#B33B97
oklch(55.5% 0.185 338.4)
-
Step 700
700
#9A2C81
oklch(49.1% 0.172 338.4)
-
Step 800
800
#7D2768
oklch(42.7% 0.141 338.9)
-
Step 900
900
#652555
oklch(37.7% 0.111 338.5)
-
Step 950
950 (this color)
#310D28
oklch(23.1% 0.07 338.7)
#310D28 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) | #0E1729 | 0.075 |
| Deuteranopia (no green cones) | #191D27 | 0.066 |
| Tritanopia (no blue cones) | #340E18 | 0.033 |
| Achromatopsia (no color) | #1B1B1B | 0.071 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #310D28
#310D28
oklch(23.1% 0.07 338.7)
- #002413
#002413
oklch(22.9% 0.053 158.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 #310D28, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Eggplant #380835 ΔE 0.031
- Aubergine #3D0734 ΔE 0.037
- Dark Plum #3F012C ΔE 0.037
- Very Dark Purple #2A0134 ΔE 0.046
- Dark Purple #35063E ΔE 0.046
- Midnight Purple #280137 ΔE 0.052
- Deep Purple #36013F ΔE 0.052
- Dark Maroon #3C0008 ΔE 0.061
Use #310D28 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.