PreviewingGo to this paletteOpen in generator
Code
/* Sapphire Night — colorset.net */
:root {
--color-1: #1E88E5;
--color-2: #1976D2;
--color-3: #1565C0;
--color-4: #0D47A1;
--color-5: #0277BD;
--color-bg: #F1F8FF;
--color-surface: #E4EFFB;
--color-border: #C9D6E5;
--color-text: #2F4D7E;
--color-muted: #5D6B82;
--color-primary: #1976D2;
--color-on-primary: #FFFFFF;
--color-accent: #0D47A1;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #060F1E;
--color-surface: #101A2A;
--color-border: #222E42;
--color-text: #8DA7C3;
--color-muted: #71859A;
--color-primary: #1976D2;
--color-on-primary: #FFFFFF;
--color-accent: #66ACFE;
--color-on-accent: #060F1E;
}
}
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 #1E88E5 | adjusted for contrast · from #0D47A1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #0D47A1 | adjusted for contrast · from #1E88E5 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | from palette · color 4 | adjusted for contrast · from #1E88E5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.90:1 | AAA pass 4.5:1 | |
| Text on surface | 7.26:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 8.63:1 | AAA pass 4.5:1 | |
| Primary on background | 4.30:1 | AA Large pass 3:1 | |
| Accent on background | 8.06:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.72:1 | AAA pass 4.5:1 | |
| Text on surface | 7.02:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 8.13:1 | AAA pass 4.5:1 | |
| Primary on background | 4.17:1 | AA Large pass 3:1 | |
| Accent on background | 8.13: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 | #1E88E5 (Text 1) | #1976D2 (Text 2) | #1565C0 (Text 3) | #0D47A1 (Text 4) | #0277BD (Text 5) |
|---|---|---|---|---|---|
| #1E88E5 | Same color | 1.25— | 1.56— | 2.35— | 1.30— |
| #1976D2 | 1.25— | Same color | 1.25— | 1.88— | 1.04— |
| #1565C0 | 1.56— | 1.25— | Same color | 1.50— | 1.20— |
| #0D47A1 | 2.35— | 1.88— | 1.50— | Same color | 1.80— |
| #0277BD | 1.30— | 1.04— | 1.20— | 1.80— | Same color |
Shades
Shades and tints (50–950)
