PreviewingGo to this paletteOpen in generator
Code
/* Charcoal Gray — colorset.net */
:root {
--color-1: #2C3E50;
--color-2: #34495E;
--color-3: #5D6D7E;
--color-4: #85929E;
--color-5: #AEB6BF;
--color-bg: #F4F7FA;
--color-surface: #EBEEF1;
--color-border: #D0D5DB;
--color-text: #2C3E50;
--color-muted: #596D81;
--color-primary: #5D6D7E;
--color-on-primary: #FFFFFF;
--color-accent: #808890;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A1016;
--color-surface: #141A20;
--color-border: #262F38;
--color-text: #AEB6BF;
--color-muted: #7C848C;
--color-primary: #5D6D7E;
--color-on-primary: #FFFFFF;
--color-accent: #85929E;
--color-on-accent: #0A1016;
}
}
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 #AEB6BF | adjusted for contrast · from #2C3E50 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #85929E | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.22:1 | AAA pass 4.5:1 | |
| Text on surface | 9.43:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 5.31:1 | AA pass 4.5:1 | |
| Label on accent | 5.84:1 | AA pass 4.5:1 | |
| Primary on background | 4.94:1 | AA pass 3:1 | |
| Accent on background | 3.34:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.32:1 | AAA pass 4.5:1 | |
| Text on surface | 8.55:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 5.31:1 | AA pass 4.5:1 | |
| Label on accent | 6.01:1 | AA pass 4.5:1 | |
| Primary on background | 3.60:1 | AA Large pass 3:1 | |
| Accent on background | 6.01: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 | #2C3E50 (Text 1) | #34495E (Text 2) | #5D6D7E (Text 3) | #85929E (Text 4) | #AEB6BF (Text 5) |
|---|---|---|---|---|---|
| #2C3E50 | Same color | 1.18— | 2.07— | 3.45AA Large | 5.36AA |
| #34495E | 1.18— | Same color | 1.75— | 2.92— | 4.53AA |
| #5D6D7E | 2.07— | 1.75— | Same color | 1.67— | 2.59— |
| #85929E | 3.45AA Large | 2.92— | 1.67— | Same color | 1.55— |
| #AEB6BF | 5.36AA | 4.53AA | 2.59— | 1.55— | Same color |
Shades
Shades and tints (50–950)
