PreviewingGo to this paletteOpen in generator
Code
/* Midnight Regalia — colorset.net */
:root {
--color-1: #0B0F1A;
--color-2: #CFAE52;
--color-3: #1E2A44;
--color-4: #8A7440;
--color-5: #F2EDE0;
--color-bg: #F2EDE0;
--color-surface: #F7F4ED;
--color-border: #DBD4C4;
--color-text: #0B0F1A;
--color-muted: #5C6270;
--color-primary: #8A7440;
--color-on-primary: #FFFFFF;
--color-accent: #1E2A44;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0B0F1A;
--color-surface: #151925;
--color-border: #282D3D;
--color-text: #F2EDE0;
--color-muted: #8B867A;
--color-primary: #8A7440;
--color-on-primary: #FFFFFF;
--color-accent: #576583;
--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 | 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 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #8A7440 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.37:1 | AAA pass 4.5:1 | |
| Text on surface | 17.42:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.23:1 | AA pass 4.5:1 | |
| Label on primary | 4.51:1 | AA pass 4.5:1 | |
| Label on accent | 14.29:1 | AAA pass 4.5:1 | |
| Primary on background | 3.86:1 | AA Large pass 3:1 | |
| Accent on background | 12.22:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.37:1 | AAA pass 4.5:1 | |
| Text on surface | 15.00:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.27:1 | AA pass 4.5:1 | |
| Label on primary | 4.51:1 | AA pass 4.5:1 | |
| Label on accent | 5.84:1 | AA pass 4.5:1 | |
| Primary on background | 4.24:1 | AA Large pass 3:1 | |
| Accent on background | 3.28: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 | #0B0F1A (Text 1) | #CFAE52 (Text 2) | #1E2A44 (Text 3) | #8A7440 (Text 4) | #F2EDE0 (Text 5) |
|---|---|---|---|---|---|
| #0B0F1A | Same color | 8.96AAA | 1.34— | 4.24AA Large | 16.37AAA |
| #CFAE52 | 8.96AAA | Same color | 6.69AA | 2.11— | 1.83— |
| #1E2A44 | 1.34— | 6.69AA | Same color | 3.17AA Large | 12.22AAA |
| #8A7440 | 4.24AA Large | 2.11— | 3.17AA Large | Same color | 3.86AA Large |
| #F2EDE0 | 16.37AAA | 1.83— | 12.22AAA | 3.86AA Large | Same color |
Shades
Shades and tints (50–950)
