PreviewingGo to this paletteOpen in generator
Code
/* Sapphire Current — colorset.net */
:root {
--color-1: #0F52BA;
--color-2: #1E40AF;
--color-3: #2563EB;
--color-4: #3B82F6;
--color-5: #60A5FA;
--color-bg: #F1F7FF;
--color-surface: #E5EFFB;
--color-border: #CAD6E6;
--color-text: #364C7F;
--color-muted: #606A82;
--color-primary: #2563EB;
--color-on-primary: #FFFFFF;
--color-accent: #3176C7;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #12192A;
--color-border: #242D42;
--color-text: #91A8C5;
--color-muted: #74859C;
--color-primary: #2563EB;
--color-on-primary: #FFFFFF;
--color-accent: #60A5FA;
--color-on-accent: #080F1F;
}
}
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 #60A5FA | adjusted for contrast · from #1E40AF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #1E40AF | adjusted for contrast · from #60A5FA |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #3B82F6 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.80:1 | AAA pass 4.5:1 | |
| Text on surface | 7.24:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 5.17:1 | AA pass 4.5:1 | |
| Label on accent | 4.62:1 | AA pass 4.5:1 | |
| Primary on background | 4.80:1 | AA pass 3:1 | |
| Accent on background | 4.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.84:1 | AAA pass 4.5:1 | |
| Text on surface | 7.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 5.17:1 | AA pass 4.5:1 | |
| Label on accent | 7.52:1 | AAA pass 4.5:1 | |
| Primary on background | 3.70:1 | AA Large pass 3:1 | |
| Accent on background | 7.52: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 | #0F52BA (Text 1) | #1E40AF (Text 2) | #2563EB (Text 3) | #3B82F6 (Text 4) | #60A5FA (Text 5) |
|---|---|---|---|---|---|
| #0F52BA | Same color | 1.22— | 1.38— | 1.94— | 2.81— |
| #1E40AF | 1.22— | Same color | 1.69— | 2.37— | 3.43AA Large |
| #2563EB | 1.38— | 1.69— | Same color | 1.41— | 2.03— |
| #3B82F6 | 1.94— | 2.37— | 1.41— | Same color | 1.45— |
| #60A5FA | 2.81— | 3.43AA Large | 2.03— | 1.45— | Same color |
Shades
Shades and tints (50–950)
