PreviewingGo to this paletteOpen in generator
Code
/* Gunmetal Gray — colorset.net */
:root {
--color-1: #1B2631;
--color-2: #283747;
--color-3: #34495E;
--color-4: #566573;
--color-5: #7B7D7D;
--color-bg: #F6F7F7;
--color-surface: #EDEDED;
--color-border: #D1D6D6;
--color-text: #1B2631;
--color-muted: #5E6B78;
--color-primary: #566573;
--color-on-primary: #FFFFFF;
--color-accent: #283747;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0C1014;
--color-surface: #161A1E;
--color-border: #282F35;
--color-text: #A5A7A7;
--color-muted: #808282;
--color-primary: #596876;
--color-on-primary: #FFFFFF;
--color-accent: #7B7D7D;
--color-on-accent: #0C1014;
}
}
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 #7B7D7D | adjusted for contrast · from #1B2631 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #7B7D7D |
| Muted text | derived | derived |
| Primary | from palette · color 4 | adjusted for contrast · from #566573 |
| On primary | derived | derived |
| Accent | from palette · color 2 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.30:1 | AAA pass 4.5:1 | |
| Text on surface | 13.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 5.99:1 | AA pass 4.5:1 | |
| Label on accent | 12.15:1 | AAA pass 4.5:1 | |
| Primary on background | 5.58:1 | AA pass 3:1 | |
| Accent on background | 11.32:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.90:1 | AAA pass 4.5:1 | |
| Text on surface | 7.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 5.73:1 | AA pass 4.5:1 | |
| Label on accent | 4.61:1 | AA pass 4.5:1 | |
| Primary on background | 3.33:1 | AA Large pass 3:1 | |
| Accent on background | 4.61: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 | #1B2631 (Text 1) | #283747 (Text 2) | #34495E (Text 3) | #566573 (Text 4) | #7B7D7D (Text 5) |
|---|---|---|---|---|---|
| #1B2631 | Same color | 1.26— | 1.65— | 2.56— | 3.71AA Large |
| #283747 | 1.26— | Same color | 1.31— | 2.03— | 2.94— |
| #34495E | 1.65— | 1.31— | Same color | 1.55— | 2.24— |
| #566573 | 2.56— | 2.03— | 1.55— | Same color | 1.45— |
| #7B7D7D | 3.71AA Large | 2.94— | 2.24— | 1.45— | Same color |
Shades
Shades and tints (50–950)
