PreviewingGo to this paletteOpen in generator
Code
/* Dark Slate — colorset.net */
:root {
--color-1: #2F4F4F;
--color-2: #8B4513;
--color-3: #228B22;
--color-4: #87CEEB;
--color-5: #FFFFFF;
--color-bg: #FFFFFF;
--color-surface: #F6F6F6;
--color-border: #E0DCDD;
--color-text: #2F4F4F;
--color-muted: #567777;
--color-primary: #1D881E;
--color-on-primary: #FFFFFF;
--color-accent: #8B4513;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #071111;
--color-surface: #111C1C;
--color-border: #223131;
--color-text: #FFFFFF;
--color-muted: #8F8F8F;
--color-primary: #1D881E;
--color-on-primary: #FFFFFF;
--color-accent: #9B5325;
--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 | from palette · color 5 | adjusted for contrast · from #2F4F4F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #228B22 | adjusted for contrast · from #228B22 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #8B4513 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.93:1 | AAA pass 4.5:1 | |
| Text on surface | 8.26:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.88:1 | AA pass 4.5:1 | |
| Label on primary | 4.57:1 | AA pass 4.5:1 | |
| Label on accent | 7.10:1 | AAA pass 4.5:1 | |
| Primary on background | 4.57:1 | AA pass 3:1 | |
| Accent on background | 7.10:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.14:1 | AAA pass 4.5:1 | |
| Text on surface | 17.40:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.92:1 | AA pass 4.5:1 | |
| Label on primary | 4.57:1 | AA pass 4.5:1 | |
| Label on accent | 5.74:1 | AA pass 4.5:1 | |
| Primary on background | 4.19:1 | AA Large pass 3:1 | |
| Accent on background | 3.33: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 | #2F4F4F (Text 1) | #8B4513 (Text 2) | #228B22 (Text 3) | #87CEEB (Text 4) | #FFFFFF (Text 5) |
|---|---|---|---|---|---|
| #2F4F4F | Same color | 1.26— | 2.03— | 5.13AA | 8.93AAA |
| #8B4513 | 1.26— | Same color | 1.62— | 4.08AA Large | 7.10AAA |
| #228B22 | 2.03— | 1.62— | Same color | 2.52— | 4.39AA Large |
| #87CEEB | 5.13AA | 4.08AA Large | 2.52— | Same color | 1.74— |
| #FFFFFF | 8.93AAA | 7.10AAA | 4.39AA Large | 1.74— | Same color |
Shades
Shades and tints (50–950)
