PreviewingGo to this paletteOpen in generator
Code
/* Spruce Blue — colorset.net */
:root {
--color-1: #0B3C49;
--color-2: #145369;
--color-3: #1E6F7D;
--color-4: #3A8891;
--color-5: #5FA8A8;
--color-bg: #E8FBFB;
--color-surface: #DFF2F2;
--color-border: #C3DADA;
--color-text: #0B3C49;
--color-muted: #4F6F7A;
--color-primary: #3A8891;
--color-on-primary: #000000;
--color-accent: #145369;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #051216;
--color-surface: #0D1C20;
--color-border: #1E3137;
--color-text: #7EADAD;
--color-muted: #668A89;
--color-primary: #3A8891;
--color-on-primary: #051216;
--color-accent: #416E7C;
--color-on-accent: #FFFFFF;
}
}
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 #5FA8A8 | adjusted for contrast · from #0B3C49 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #5FA8A8 |
| 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 #1E6F7D |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.17:1 | AAA pass 4.5:1 | |
| Text on surface | 10.31:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 5.11:1 | AA pass 4.5:1 | |
| Label on accent | 8.50:1 | AAA pass 4.5:1 | |
| Primary on background | 3.84:1 | AA Large pass 3:1 | |
| Accent on background | 7.94:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.67:1 | AAA pass 4.5:1 | |
| Text on surface | 7.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 5.61:1 | AA pass 4.5:1 | |
| Primary on background | 4.63:1 | AA pass 3:1 | |
| Accent on background | 3.39:1 | AA Large 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 | #0B3C49 (Text 1) | #145369 (Text 2) | #1E6F7D (Text 3) | #3A8891 (Text 4) | #5FA8A8 (Text 5) |
|---|---|---|---|---|---|
| #0B3C49 | Same color | 1.41— | 2.06— | 2.91— | 4.36AA Large |
| #145369 | 1.41— | Same color | 1.47— | 2.07— | 3.10AA Large |
| #1E6F7D | 2.06— | 1.47— | Same color | 1.41— | 2.11— |
| #3A8891 | 2.91— | 2.07— | 1.41— | Same color | 1.50— |
| #5FA8A8 | 4.36AA Large | 3.10AA Large | 2.11— | 1.50— | Same color |
Shades
Shades and tints (50–950)
