PreviewingGo to this paletteOpen in generator
Code
/* Midnight Denim — colorset.net */
:root {
--color-1: #1A237E;
--color-2: #283593;
--color-3: #3F51B5;
--color-4: #5C6BC0;
--color-5: #7986CB;
--color-bg: #F4F6FF;
--color-surface: #E9EDFB;
--color-border: #D0D4E6;
--color-text: #222E60;
--color-muted: #616A82;
--color-primary: #3F51B5;
--color-on-primary: #FFFFFF;
--color-accent: #1A237E;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A0E1F;
--color-surface: #13182A;
--color-border: #262D42;
--color-text: #9DA5C7;
--color-muted: #7A809A;
--color-primary: #495DC2;
--color-on-primary: #FFFFFF;
--color-accent: #7986CB;
--color-on-accent: #0A0E1F;
}
}
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 #7986CB | adjusted for contrast · from #1A237E |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #1A237E | adjusted for contrast · from #7986CB |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #3F51B5 |
| On primary | derived | derived |
| Accent | from palette · color 1 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.96:1 | AAA pass 4.5:1 | |
| Text on surface | 11.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 6.87:1 | AA pass 4.5:1 | |
| Label on accent | 13.24:1 | AAA pass 4.5:1 | |
| Primary on background | 6.37:1 | AA pass 3:1 | |
| Accent on background | 12.28:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.89:1 | AAA pass 4.5:1 | |
| Text on surface | 7.25:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 5.79:1 | AA pass 4.5:1 | |
| Label on accent | 5.55:1 | AA pass 4.5:1 | |
| Primary on background | 3.31:1 | AA Large pass 3:1 | |
| Accent on background | 5.55:1 | AA 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 | #1A237E (Text 1) | #283593 (Text 2) | #3F51B5 (Text 3) | #5C6BC0 (Text 4) | #7986CB (Text 5) |
|---|---|---|---|---|---|
| #1A237E | Same color | 1.27— | 1.93— | 2.72— | 3.84AA Large |
| #283593 | 1.27— | Same color | 1.51— | 2.14— | 3.01AA Large |
| #3F51B5 | 1.93— | 1.51— | Same color | 1.41— | 1.99— |
| #5C6BC0 | 2.72— | 2.14— | 1.41— | Same color | 1.41— |
| #7986CB | 3.84AA Large | 3.01AA Large | 1.99— | 1.41— | Same color |
Shades
Shades and tints (50–950)
