PreviewingGo to this paletteOpen in generator
Code
/* Dark Space — colorset.net */
:root {
--color-1: #020617;
--color-2: #0F172A;
--color-3: #1E293B;
--color-4: #334155;
--color-5: #475569;
--color-bg: #F2F7FF;
--color-surface: #E9EEF5;
--color-border: #CED5E0;
--color-text: #020617;
--color-muted: #545F76;
--color-primary: #475569;
--color-on-primary: #FFFFFF;
--color-accent: #0F172A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #020617;
--color-surface: #070F22;
--color-border: #1A2337;
--color-text: #8F9EB5;
--color-muted: #6F7E93;
--color-primary: #556378;
--color-on-primary: #FFFFFF;
--color-accent: #8895A8;
--color-on-accent: #020617;
}
}
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 #475569 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #475569 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #475569 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #475569 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.75:1 | AAA pass 4.5:1 | |
| Text on surface | 17.30:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.96:1 | AA pass 4.5:1 | |
| Label on primary | 7.58:1 | AAA pass 4.5:1 | |
| Label on accent | 17.85:1 | AAA pass 4.5:1 | |
| Primary on background | 7.04:1 | AAA pass 3:1 | |
| Accent on background | 16.60:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.42:1 | AAA pass 4.5:1 | |
| Text on surface | 7.02:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.88:1 | AA pass 4.5:1 | |
| Label on primary | 6.10:1 | AA pass 4.5:1 | |
| Label on accent | 6.64:1 | AA pass 4.5:1 | |
| Primary on background | 3.31:1 | AA Large pass 3:1 | |
| Accent on background | 6.64: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 | #020617 (Text 1) | #0F172A (Text 2) | #1E293B (Text 3) | #334155 (Text 4) | #475569 (Text 5) |
|---|---|---|---|---|---|
| #020617 | Same color | 1.13— | 1.38— | 1.95— | 2.66— |
| #0F172A | 1.13— | Same color | 1.22— | 1.72— | 2.36— |
| #1E293B | 1.38— | 1.22— | Same color | 1.41— | 1.93— |
| #334155 | 1.95— | 1.72— | 1.41— | Same color | 1.37— |
| #475569 | 2.66— | 2.36— | 1.93— | 1.37— | Same color |
Shades
Shades and tints (50–950)
