Dark Mode Violet Color Palette
Deep, moody palettes for dark mode UIs, dashboards and night themes. Copy any hex code, or grab the whole palette as CSS variables or a Tailwind config.
Color codes
| Colour | HEX | RGB | HSL | OKLCH |
|---|---|---|---|---|
Contrast
WCAG contrast for the strongest pairs. AA needs 4.5:1 for body text.
Aa#ddd6fe on #0c0a1414.15:1 · AAA
Aa#ddd6fe on #16121f13.26:1 · AAA
Aa#ddd6fe on #241d3311.65:1 · AAA
Aa#8b5cf6 on #0c0a144.64:1 · AA
CSS variables
:root {
--dark-mode-violet-1: #0c0a14;
--dark-mode-violet-2: #16121f;
--dark-mode-violet-3: #241d33;
--dark-mode-violet-4: #8b5cf6;
--dark-mode-violet-5: #ddd6fe;
}Tailwind CSS
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'dark-mode-violet': {
100: '#0c0a14',
200: '#16121f',
300: '#241d33',
400: '#8b5cf6',
500: '#ddd6fe',
},
},
},
},
};FAQ
What colors are in the Dark Mode Violet palette?
Dark Mode Violet uses #0c0a14, #16121f, #241d33, #8b5cf6, #ddd6fe.
Which colors in Dark Mode Violet work for text?
The strongest pair is #0c0a14 and #ddd6fe with a contrast ratio of 14.15:1 (AAA).