PreviewingGo to this paletteOpen in generator
Code
/* Midnight Gray — colorset.net */
:root {
--color-1: #2F4F4F;
--color-2: #3A5A5A;
--color-3: #456565;
--color-4: #507070;
--color-5: #5B7B7B;
--color-bg: #EFF9F9;
--color-surface: #E6F0F0;
--color-border: #CAD8D8;
--color-text: #2F4F4F;
--color-muted: #507171;
--color-primary: #5B7B7B;
--color-on-primary: #FFFFFF;
--color-accent: #456565;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #071111;
--color-surface: #111C1C;
--color-border: #223131;
--color-text: #8AACAC;
--color-muted: #698A8A;
--color-primary: #5B7B7B;
--color-on-primary: #FFFFFF;
--color-accent: #91AEAE;
--color-on-accent: #071111;
}
}
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 #5B7B7B | adjusted for contrast · from #2F4F4F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #5B7B7B |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #5B7B7B |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.33:1 | AAA pass 4.5:1 | |
| Text on surface | 7.69:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 6.36:1 | AA pass 4.5:1 | |
| Primary on background | 4.29:1 | AA Large pass 3:1 | |
| Accent on background | 5.93:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.82:1 | AAA pass 4.5:1 | |
| Text on surface | 7.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.11:1 | AA pass 4.5:1 | |
| Label on primary | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 8.08:1 | AAA pass 4.5:1 | |
| Primary on background | 4.16:1 | AA Large pass 3:1 | |
| Accent on background | 8.08:1 | AAA 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 | #2F4F4F (Text 1) | #3A5A5A (Text 2) | #456565 (Text 3) | #507070 (Text 4) | #5B7B7B (Text 5) |
|---|---|---|---|---|---|
| #2F4F4F | Same color | 1.19— | 1.40— | 1.65— | 1.94— |
| #3A5A5A | 1.19— | Same color | 1.18— | 1.40— | 1.64— |
| #456565 | 1.40— | 1.18— | Same color | 1.18— | 1.38— |
| #507070 | 1.65— | 1.40— | 1.18— | Same color | 1.17— |
| #5B7B7B | 1.94— | 1.64— | 1.38— | 1.17— | Same color |
Shades
Shades and tints (50–950)
