PreviewingGo to this paletteOpen in generator
Code
/* Dark Gray — colorset.net */
:root {
--color-1: #2F2F2F;
--color-2: #4A4A4A;
--color-3: #2F4F4F;
--color-4: #696969;
--color-5: #A9A9A9;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #2F2F2F;
--color-muted: #6B6B6B;
--color-primary: #2F4F4F;
--color-on-primary: #FFFFFF;
--color-accent: #878787;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0F;
--color-surface: #191919;
--color-border: #302D2E;
--color-text: #A9A9A9;
--color-muted: #828282;
--color-primary: #4A6B6B;
--color-on-primary: #FFFFFF;
--color-accent: #809D9C;
--color-on-accent: #0F0F0F;
}
}
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 #A9A9A9 | adjusted for contrast · from #2F2F2F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #696969 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #696969 | adjusted for contrast · from #A9A9A9 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.50:1 | AAA pass 4.5:1 | |
| Text on surface | 11.44:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 8.93:1 | AAA pass 4.5:1 | |
| Label on accent | 5.85:1 | AA pass 4.5:1 | |
| Primary on background | 8.33:1 | AAA pass 3:1 | |
| Accent on background | 3.35:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.16:1 | AAA pass 4.5:1 | |
| Text on surface | 7.48:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 5.82:1 | AA pass 4.5:1 | |
| Label on accent | 6.59:1 | AA pass 4.5:1 | |
| Primary on background | 3.29:1 | AA Large pass 3:1 | |
| Accent on background | 6.59: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 | #2F2F2F (Text 1) | #4A4A4A (Text 2) | #2F4F4F (Text 3) | #696969 (Text 4) | #A9A9A9 (Text 5) |
|---|---|---|---|---|---|
| #2F2F2F | Same color | 1.51— | 1.50— | 2.44— | 5.70AA |
| #4A4A4A | 1.51— | Same color | 1.01— | 1.61— | 3.77AA Large |
| #2F4F4F | 1.50— | 1.01— | Same color | 1.63— | 3.80AA Large |
| #696969 | 2.44— | 1.61— | 1.63— | Same color | 2.34— |
| #A9A9A9 | 5.70AA | 3.77AA Large | 3.80AA Large | 2.34— | Same color |
Shades
Shades and tints (50–950)
