PreviewingGo to this paletteOpen in generator
Code
/* Midnight Sapphire — colorset.net */
:root {
--color-1: #0D1530;
--color-2: #3F6BE0;
--color-3: #E8C9A0;
--color-4: #22305A;
--color-5: #EEF0F7;
--color-bg: #EEF0F7;
--color-surface: #F6F7FC;
--color-border: #D4D7E2;
--color-text: #0D1530;
--color-muted: #5F6981;
--color-primary: #3F6BE0;
--color-on-primary: #FFFFFF;
--color-accent: #A1845D;
--color-on-accent: #0D1530;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D1530;
--color-surface: #17203C;
--color-border: #2E364C;
--color-text: #EEF0F7;
--color-muted: #8A8C92;
--color-primary: #3F6BE0;
--color-on-primary: #FFFFFF;
--color-accent: #E8C9A0;
--color-on-accent: #0D1530;
}
}
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 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E8C9A0 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.80:1 | AAA pass 4.5:1 | |
| Text on surface | 16.82:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.82:1 | AA pass 4.5:1 | |
| Label on primary | 4.78:1 | AA pass 4.5:1 | |
| Label on accent | 5.12:1 | AA pass 4.5:1 | |
| Primary on background | 4.20:1 | AA Large pass 3:1 | |
| Accent on background | 3.09:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.80:1 | AAA pass 4.5:1 | |
| Text on surface | 14.10:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.35:1 | AA pass 4.5:1 | |
| Label on primary | 4.78:1 | AA pass 4.5:1 | |
| Label on accent | 11.39:1 | AAA pass 4.5:1 | |
| Primary on background | 3.76:1 | AA Large pass 3:1 | |
| Accent on background | 11.39: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 | #0D1530 (Text 1) | #3F6BE0 (Text 2) | #E8C9A0 (Text 3) | #22305A (Text 4) | #EEF0F7 (Text 5) |
|---|---|---|---|---|---|
| #0D1530 | Same color | 3.76AA Large | 11.39AAA | 1.40— | 15.80AAA |
| #3F6BE0 | 3.76AA Large | Same color | 3.03AA Large | 2.68— | 4.20AA Large |
| #E8C9A0 | 11.39AAA | 3.03AA Large | Same color | 8.11AAA | 1.39— |
| #22305A | 1.40— | 2.68— | 8.11AAA | Same color | 11.26AAA |
| #EEF0F7 | 15.80AAA | 4.20AA Large | 1.39— | 11.26AAA | Same color |
Shades
Shades and tints (50–950)
