PreviewingGo to this paletteOpen in generator
Code
/* Charcoal Denim — colorset.net */
:root {
--color-1: #263238;
--color-2: #37474F;
--color-3: #455A64;
--color-4: #546E7A;
--color-5: #607D8B;
--color-bg: #EFF9FD;
--color-surface: #E6EFF4;
--color-border: #CAD7DE;
--color-text: #263238;
--color-muted: #606E75;
--color-primary: #607D8B;
--color-on-primary: #000000;
--color-accent: #37474F;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0C1012;
--color-surface: #161A1C;
--color-border: #272F33;
--color-text: #8CABB9;
--color-muted: #6B8897;
--color-primary: #607D8B;
--color-on-primary: #000000;
--color-accent: #5B686F;
--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 #607D8B | adjusted for contrast · from #263238 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #607D8B |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #546E7A |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.31:1 | AAA pass 4.5:1 | |
| Text on surface | 11.29:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 4.80:1 | AA pass 4.5:1 | |
| Label on accent | 9.65:1 | AAA pass 4.5:1 | |
| Primary on background | 4.09:1 | AA Large pass 3:1 | |
| Accent on background | 9.02:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.87:1 | AAA pass 4.5:1 | |
| Text on surface | 7.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 4.80:1 | AA pass 4.5:1 | |
| Label on accent | 5.75:1 | AA pass 4.5:1 | |
| Primary on background | 4.37: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 | #263238 (Text 1) | #37474F (Text 2) | #455A64 (Text 3) | #546E7A (Text 4) | #607D8B (Text 5) |
|---|---|---|---|---|---|
| #263238 | Same color | 1.36— | 1.82— | 2.44— | 3.01AA Large |
| #37474F | 1.36— | Same color | 1.33— | 1.79— | 2.21— |
| #455A64 | 1.82— | 1.33— | Same color | 1.34— | 1.66— |
| #546E7A | 2.44— | 1.79— | 1.34— | Same color | 1.24— |
| #607D8B | 3.01AA Large | 2.21— | 1.66— | 1.24— | Same color |
Shades
Shades and tints (50–950)
