PreviewingGo to this paletteOpen in generator
Code
/* Midnight Mass — colorset.net */
:root {
--color-1: #10192B;
--color-2: #C9A24A;
--color-3: #8E1F2F;
--color-4: #2B3A55;
--color-5: #F1E9D8;
--color-bg: #F1E9D8;
--color-surface: #F5F1E6;
--color-border: #DAD0BC;
--color-text: #10192B;
--color-muted: #5D687F;
--color-primary: #8E1F2F;
--color-on-primary: #FFFFFF;
--color-accent: #967106;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #10192B;
--color-surface: #1A2437;
--color-border: #2E394E;
--color-text: #F1E9D8;
--color-muted: #948C7D;
--color-primary: #BA4952;
--color-on-primary: #FFFFFF;
--color-accent: #C9A24A;
--color-on-accent: #10192B;
}
}
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 | from palette · color 5 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #8E1F2F |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C9A24A | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.54:1 | AAA pass 4.5:1 | |
| Text on surface | 15.56:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.63:1 | AA pass 4.5:1 | |
| Label on primary | 8.80:1 | AAA pass 4.5:1 | |
| Label on accent | 4.51:1 | AA pass 4.5:1 | |
| Primary on background | 7.28:1 | AAA pass 3:1 | |
| Accent on background | 3.73:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.54:1 | AAA pass 4.5:1 | |
| Text on surface | 12.87:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.27:1 | AA pass 4.5:1 | |
| Label on primary | 5.04:1 | AA pass 4.5:1 | |
| Label on accent | 7.32:1 | AAA pass 4.5:1 | |
| Primary on background | 3.48:1 | AA Large pass 3:1 | |
| Accent on background | 7.32:1 | AAA 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 | #10192B (Text 1) | #C9A24A (Text 2) | #8E1F2F (Text 3) | #2B3A55 (Text 4) | #F1E9D8 (Text 5) |
|---|---|---|---|---|---|
| #10192B | Same color | 7.32AAA | 2.00— | 1.54— | 14.54AAA |
| #C9A24A | 7.32AAA | Same color | 3.67AA Large | 4.76AA | 1.99— |
| #8E1F2F | 2.00— | 3.67AA Large | Same color | 1.30— | 7.28AAA |
| #2B3A55 | 1.54— | 4.76AA | 1.30— | Same color | 9.45AAA |
| #F1E9D8 | 14.54AAA | 1.99— | 7.28AAA | 9.45AAA | Same color |
Shades
Shades and tints (50–950)
