#31072C
Closest named color: Eggplant (#380835). oklch(22.6% 0.084 333.3), rgb(49, 7, 44).
Aa
White text reads best on this color (17.53:1).
About this color
#31072C is a very dark, moderately saturated purple. In OKLCH its lightness is 23%, its chroma 0.084 and its hue 333°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Eggplant (#380835), ΔE 0.024 away. White text reads best on it, at 17.53:1.
| Hue family | Purples |
| Lightness | very dark (23%) |
| Chroma | moderately saturated (0.084) |
| Temperature | in between |
| Nearest name | Eggplant (#380835) |
| Black text | 1.19:1 |
| White text | 17.53:1 |
Values
| HEX | #31072C |
| RGB | rgb(49, 7, 44) |
| HSL | hsl(307, 75%, 11%) |
| OKLCH | oklch(22.6% 0.084 333.3) |
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 #31072C | 17.53:1 | AAA | Lc -106.2 | Preferred for body text |
| Black text on #31072C | 1.19:1 | Fails | Lc 0.0 | Not readable |
| #31072C text on white | 17.53:1 | AAA | Lc 103.9 | Preferred for body text |
| #31072C text on black | 1.19: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
#FBF2F9
oklch(97% 0.013 333)
-
Step 100
100
#F6E3F2
oklch(93.5% 0.029 332.8)
-
Step 200
200
#F0CCE9
oklch(88.4% 0.055 332.7)
-
Step 300
300
#E8A9DC
oklch(81% 0.099 333.3)
-
Step 400
400
#DA77CA
oklch(70.7% 0.159 333.4)
-
Step 500
500
#CD4EBC
oklch(63.1% 0.203 333.3)
-
Step 600
600
#B828A8
oklch(55.5% 0.221 333.3)
-
Step 700
700
#9E1790
oklch(49% 0.205 333.3)
-
Step 800
800
#811975
oklch(42.8% 0.17 333.5)
-
Step 900
900
#681D5F
oklch(37.7% 0.133 333.1)
-
Step 950
950 (this color)
#31072C
oklch(22.6% 0.084 333.3)
#31072C 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) | #06152D | 0.091 |
| Deuteranopia (no green cones) | #151B2B | 0.076 |
| Tritanopia (no blue cones) | #340B18 | 0.044 |
| Achromatopsia (no color) | #191919 | 0.085 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #31072C
#31072C
oklch(22.6% 0.084 333.3)
- #00230E
#00230E
oklch(22.5% 0.058 153.2)
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 #31072C, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Eggplant #380835 ΔE 0.024
- Very Dark Purple #2A0134 ΔE 0.031
- Aubergine #3D0734 ΔE 0.032
- Dark Plum #3F012C ΔE 0.034
- Dark Purple #35063E ΔE 0.035
- Midnight Purple #280137 ΔE 0.038
- Deep Purple #36013F ΔE 0.040
- Eggplant Purple #430541 ΔE 0.056
Use #31072C 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.