Midnight Room
3-color mesh gradient
Midnight Room is a 3-color CSS mesh gradient built from #020617, #1E293B, and #4C1D95. Its hues sit in the purple range, and reads as neutral, dark, and cool. White text on it keeps at least 10.95:1 at its weakest point — enough for WCAG AAA body text.
Light & dark theme
This palette as Material 3 color roles for a real interface, in light and dark mode. Every color comes with the text color that goes on it, and every pair's contrast is measured.
What are the HEX, RGB, and HSL values for Midnight Room?
Every color in this 3-color set, with its contrast ratio against white and black.
| Color | Name | HEX | RGB | HSL | On white | On black |
|---|---|---|---|---|---|---|
| #020617 | Rich Black | #020617 | 2, 6, 23 | 229°, 84%, 5% | 20.17:1 | 1.04:1 |
| #1E293B | Navy Blue | #1E293B | 30, 41, 59 | 217°, 33%, 17% | 14.63:1 | 1.44:1 |
| #4C1D95 | Indigo | #4C1D95 | 76, 29, 149 | 264°, 67%, 35% | 10.95:1 | 1.92:1 |
Related mesh gradients
Others sharing the same hues and tone