PreviewingGo to this paletteOpen in generator
Code
/* Space Dark — colorset.net */
:root {
--color-1: #020617;
--color-2: #0F172A;
--color-3: #1E293B;
--color-4: #475569;
--color-5: #94A3B8;
--color-bg: #F2F7FE;
--color-surface: #E9EEF5;
--color-border: #CED5DF;
--color-text: #020617;
--color-muted: #545F76;
--color-primary: #475569;
--color-on-primary: #FFFFFF;
--color-accent: #79889C;
--color-on-accent: #020617;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #020617;
--color-surface: #070F22;
--color-border: #1A2337;
--color-text: #94A3B8;
--color-muted: #6F7D91;
--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 #94A3B8 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | adjusted for contrast · from #475569 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #94A3B8 | adjusted for contrast · from #94A3B8 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.74: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 | 5.59:1 | AA pass 4.5:1 | |
| Primary on background | 7.04:1 | AAA pass 3:1 | |
| Accent on background | 3.36:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.87:1 | AAA pass 4.5:1 | |
| Text on surface | 7.44:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.82: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) | #475569 (Text 4) | #94A3B8 (Text 5) |
|---|---|---|---|---|---|
| #020617 | Same color | 1.13— | 1.38— | 2.66— | 7.87AAA |
| #0F172A | 1.13— | Same color | 1.22— | 2.36— | 6.96AA |
| #1E293B | 1.38— | 1.22— | Same color | 1.93— | 5.71AA |
| #475569 | 2.66— | 2.36— | 1.93— | Same color | 2.96— |
| #94A3B8 | 7.87AAA | 6.96AA | 5.71AA | 2.96— | Same color |
Shades
Shades and tints (50–950)
