Skip to main content

Midnight Room

3-color mesh gradient

Open in Studio Visualize

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 values for Midnight Room: hex, RGB, HSL, and WCAG contrast ratios against white and black.
ColorNameHEXRGBHSLOn whiteOn black
#020617Rich Black#0206172, 6, 23229°, 84%, 5%20.17:11.04:1
#1E293BNavy Blue#1E293B30, 41, 59217°, 33%, 17%14.63:11.44:1
#4C1D95Indigo#4C1D9576, 29, 149264°, 67%, 35%10.95:11.92:1