PreviewingGo to this paletteOpen in generator
Code
/* Slate Dark — colorset.net */
:root {
--color-1: #2F4F4F;
--color-2: #436363;
--color-3: #577777;
--color-4: #6B8B8B;
--color-5: #7F9F9F;
--color-bg: #EFF9F9;
--color-surface: #E6F0F0;
--color-border: #CAD8D8;
--color-text: #2F4F4F;
--color-muted: #507171;
--color-primary: #6B8B8B;
--color-on-primary: #000000;
--color-accent: #436363;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #071111;
--color-surface: #111C1C;
--color-border: #223131;
--color-text: #8BABAB;
--color-muted: #6A8A8A;
--color-primary: #6B8B8B;
--color-on-primary: #071111;
--color-accent: #4D6E6E;
--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 #7F9F9F | adjusted for contrast · from #2F4F4F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #7F9F9F |
| 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 #577777 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.33:1 | AAA pass 4.5:1 | |
| Text on surface | 7.69:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 5.69:1 | AA pass 4.5:1 | |
| Label on accent | 6.56:1 | AA pass 4.5:1 | |
| Primary on background | 3.44:1 | AA Large pass 3:1 | |
| Accent on background | 6.11:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.76:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.12:1 | AA pass 4.5:1 | |
| Label on primary | 5.19:1 | AA pass 4.5:1 | |
| Label on accent | 5.57:1 | AA pass 4.5:1 | |
| Primary on background | 5.19:1 | AA pass 3:1 | |
| Accent on background | 3.44: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) | #436363 (Text 2) | #577777 (Text 3) | #6B8B8B (Text 4) | #7F9F9F (Text 5) |
|---|---|---|---|---|---|
| #2F4F4F | Same color | 1.36— | 1.83— | 2.42— | 3.13AA Large |
| #436363 | 1.36— | Same color | 1.35— | 1.78— | 2.30— |
| #577777 | 1.83— | 1.35— | Same color | 1.32— | 1.71— |
| #6B8B8B | 2.42— | 1.78— | 1.32— | Same color | 1.29— |
| #7F9F9F | 3.13AA Large | 2.30— | 1.71— | 1.29— | Same color |
Shades
Shades and tints (50–950)
