PreviewingGo to this paletteOpen in generator
Code
/* Sapphire Abyss — colorset.net */
:root {
--color-1: #0A1F44;
--color-2: #0D3B66;
--color-3: #1A508B;
--color-4: #2F6EA1;
--color-5: #5089B8;
--color-bg: #F0F8FF;
--color-surface: #E3EFFA;
--color-border: #C8D7E5;
--color-text: #0A1F44;
--color-muted: #5D6A81;
--color-primary: #2F6EA1;
--color-on-primary: #FFFFFF;
--color-accent: #0D3B66;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1C;
--color-surface: #111A27;
--color-border: #242E40;
--color-text: #8BA9C3;
--color-muted: #6F869A;
--color-primary: #2F6EA1;
--color-on-primary: #FFFFFF;
--color-accent: #6DA1CF;
--color-on-accent: #080F1C;
}
}
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 #5089B8 | adjusted for contrast · from #0A1F44 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #5089B8 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #5089B8 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.15:1 | AAA pass 4.5:1 | |
| Text on surface | 13.92:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 5.43:1 | AA pass 4.5:1 | |
| Label on accent | 11.45:1 | AAA pass 4.5:1 | |
| Primary on background | 5.06:1 | AA pass 3:1 | |
| Accent on background | 10.67:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.82:1 | AAA pass 4.5:1 | |
| Text on surface | 7.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 5.43:1 | AA pass 4.5:1 | |
| Label on accent | 6.98:1 | AA pass 4.5:1 | |
| Primary on background | 3.53:1 | AA Large pass 3:1 | |
| Accent on background | 6.98: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 | #0A1F44 (Text 1) | #0D3B66 (Text 2) | #1A508B (Text 3) | #2F6EA1 (Text 4) | #5089B8 (Text 5) |
|---|---|---|---|---|---|
| #0A1F44 | Same color | 1.42— | 1.98— | 2.99— | 4.34AA Large |
| #0D3B66 | 1.42— | Same color | 1.40— | 2.11— | 3.06AA Large |
| #1A508B | 1.98— | 1.40— | Same color | 1.51— | 2.19— |
| #2F6EA1 | 2.99— | 2.11— | 1.51— | Same color | 1.45— |
| #5089B8 | 4.34AA Large | 3.06AA Large | 2.19— | 1.45— | Same color |
Shades
Shades and tints (50–950)
