PreviewingGo to this paletteOpen in generator
Code
/* Royal Midnight — colorset.net */
:root {
--color-1: #191970;
--color-2: #2E2E8B;
--color-3: #4169E1;
--color-4: #6495ED;
--color-5: #0F0F5C;
--color-bg: #F2F7FF;
--color-surface: #E6EEFB;
--color-border: #CCD5E6;
--color-text: #12194A;
--color-muted: #636B84;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #191970;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A0E1F;
--color-surface: #13182A;
--color-border: #262D42;
--color-text: #95A7C6;
--color-muted: #76849C;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #4C5FB1;
--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 #6495ED | adjusted for contrast · from #0F0F5C |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #0F0F5C | adjusted for contrast · from #6495ED |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 1 | adjusted for contrast · from #4169E1 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.45:1 | AAA pass 4.5:1 | |
| Text on surface | 14.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 14.85:1 | AAA pass 4.5:1 | |
| Primary on background | 4.51:1 | AA pass 3:1 | |
| Accent on background | 13.80:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.87:1 | AAA pass 4.5:1 | |
| Text on surface | 7.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 5.87:1 | AA pass 4.5:1 | |
| Primary on background | 3.95:1 | AA Large pass 3:1 | |
| Accent on background | 3.27: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 | #191970 (Text 1) | #2E2E8B (Text 2) | #4169E1 (Text 3) | #6495ED (Text 4) | #0F0F5C (Text 5) |
|---|---|---|---|---|---|
| #191970 | Same color | 1.33— | 3.06AA Large | 4.99AA | 1.14— |
| #2E2E8B | 1.33— | Same color | 2.30— | 3.76AA Large | 1.51— |
| #4169E1 | 3.06AA Large | 2.30— | Same color | 1.63— | 3.49AA Large |
| #6495ED | 4.99AA | 3.76AA Large | 1.63— | Same color | 5.68AA |
| #0F0F5C | 1.14— | 1.51— | 3.49AA Large | 5.68AA | Same color |
Shades
Shades and tints (50–950)
