PreviewingGo to this paletteOpen in generator
Code
/* Deep Midnight — colorset.net */
:root {
--color-1: #0C0C0C;
--color-2: #1A1A2E;
--color-3: #16213E;
--color-4: #0F3460;
--color-5: #533483;
--color-bg: #F8F5FF;
--color-surface: #EFEBFA;
--color-border: #D7D2E4;
--color-text: #0C0C0C;
--color-muted: #636363;
--color-primary: #533483;
--color-on-primary: #FFFFFF;
--color-accent: #0F3460;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0C0C0C;
--color-surface: #161616;
--color-border: #2C292A;
--color-text: #A99FC1;
--color-muted: #847D97;
--color-primary: #7254A6;
--color-on-primary: #FFFFFF;
--color-accent: #416696;
--color-on-accent: #FFFFFF;
}
}
Color values
| Color | HEX | RGB | HSL | OKLCH |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 |
Roles & contrast
Original colors are kept; roles are adjusted only when needed for contrast.
| Role | Light mode | Dark mode |
|---|---|---|
| Background | adjusted for contrast · from #533483 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #533483 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #533483 |
| On primary | derived | derived |
| Accent | from palette · color 4 | adjusted for contrast · from #533483 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.16:1 | AAA pass 4.5:1 | |
| Text on surface | 16.71:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.58:1 | AA pass 4.5:1 | |
| Label on primary | 9.60:1 | AAA pass 4.5:1 | |
| Label on accent | 12.50:1 | AAA pass 4.5:1 | |
| Primary on background | 8.92:1 | AAA pass 3:1 | |
| Accent on background | 11.60:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.84:1 | AAA pass 4.5:1 | |
| Text on surface | 7.25:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 5.94:1 | AA pass 4.5:1 | |
| Label on accent | 5.89:1 | AA pass 4.5:1 | |
| Primary on background | 3.29:1 | AA Large pass 3:1 | |
| Accent on background | 3.32:1 | AA Large pass 3:1 |
Every color on every color
Rows are backgrounds and columns are text colors, using the actual palette colors. Ratios: AAA 7:1, AA 4.5:1, AA large text 3:1.
| Background / Text | #0C0C0C (Text 1) | #1A1A2E (Text 2) | #16213E (Text 3) | #0F3460 (Text 4) | #533483 (Text 5) |
|---|---|---|---|---|---|
| #0C0C0C | Same color | 1.15— | 1.23— | 1.57— | 2.04— |
| #1A1A2E | 1.15— | Same color | 1.07— | 1.36— | 1.78— |
| #16213E | 1.23— | 1.07— | Same color | 1.27— | 1.66— |
| #0F3460 | 1.57— | 1.36— | 1.27— | Same color | 1.30— |
| #533483 | 2.04— | 1.78— | 1.66— | 1.30— | Same color |
Shades
Shades and tints (50–950)
