PreviewingGo to this paletteOpen in generator
Code
/* Charcoal Slate — colorset.net */
:root {
--color-1: #0C0C0C;
--color-2: #191970;
--color-3: #2F4F4F;
--color-4: #333333;
--color-5: #696969;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #0C0C0C;
--color-muted: #636363;
--color-primary: #191970;
--color-on-primary: #FFFFFF;
--color-accent: #696969;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0C0C0C;
--color-surface: #161616;
--color-border: #2C292A;
--color-text: #A2A2A2;
--color-muted: #7F7F7F;
--color-primary: #4C5CB6;
--color-on-primary: #FFFFFF;
--color-accent: #696969;
--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 #696969 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #696969 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | adjusted for contrast · from #696969 |
| On primary | derived | derived |
| Accent | from palette · color 5 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.26:1 | AAA pass 4.5:1 | |
| Text on surface | 16.71:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.61:1 | AA pass 4.5:1 | |
| Label on primary | 14.85:1 | AAA pass 4.5:1 | |
| Label on accent | 5.49:1 | AA pass 4.5:1 | |
| Primary on background | 13.86:1 | AAA pass 3:1 | |
| Accent on background | 5.12:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.66:1 | AAA pass 4.5:1 | |
| Text on surface | 7.09:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.89:1 | AA pass 4.5:1 | |
| Label on primary | 5.98:1 | AA pass 4.5:1 | |
| Label on accent | 5.49:1 | AA pass 4.5:1 | |
| Primary on background | 3.27:1 | AA Large pass 3:1 | |
| Accent on background | 3.56: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 | #0C0C0C (Text 1) | #191970 (Text 2) | #2F4F4F (Text 3) | #333333 (Text 4) | #696969 (Text 5) |
|---|---|---|---|---|---|
| #0C0C0C | Same color | 1.32— | 2.19— | 1.55— | 3.56AA Large |
| #191970 | 1.32— | Same color | 1.66— | 1.18— | 2.70— |
| #2F4F4F | 2.19— | 1.66— | Same color | 1.42— | 1.63— |
| #333333 | 1.55— | 1.18— | 1.42— | Same color | 2.30— |
| #696969 | 3.56AA Large | 2.70— | 1.63— | 2.30— | Same color |
Shades
Shades and tints (50–950)
