PreviewingGo to this paletteOpen in generator
Code
/* Polar Night — colorset.net */
:root {
--color-1: #1B2230;
--color-2: #A3C4DC;
--color-3: #E8A87C;
--color-4: #3B4558;
--color-5: #E9EDF2;
--color-bg: #E9EDF2;
--color-surface: #F2F4F7;
--color-border: #CED5DD;
--color-text: #1B2230;
--color-muted: #616A7B;
--color-primary: #A3683D;
--color-on-primary: #FFFFFF;
--color-accent: #6C8CA2;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1B2230;
--color-surface: #262D3C;
--color-border: #3A4355;
--color-text: #E9EDF2;
--color-muted: #909498;
--color-primary: #E8A87C;
--color-on-primary: #1B2230;
--color-accent: #A3C4DC;
--color-on-accent: #1B2230;
}
}
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 | from palette · color 5 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #E8A87C | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #A3C4DC | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.55:1 | AAA pass 4.5:1 | |
| Text on surface | 14.46:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.63:1 | AA pass 4.5:1 | |
| Label on primary | 4.56:1 | AA pass 4.5:1 | |
| Label on accent | 5.91:1 | AA pass 4.5:1 | |
| Primary on background | 3.88:1 | AA Large pass 3:1 | |
| Accent on background | 3.02:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.55:1 | AAA pass 4.5:1 | |
| Text on surface | 11.73:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.22:1 | AA pass 4.5:1 | |
| Label on primary | 7.83:1 | AAA pass 4.5:1 | |
| Label on accent | 8.71:1 | AAA pass 4.5:1 | |
| Primary on background | 7.83:1 | AAA pass 3:1 | |
| Accent on background | 8.71: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 | #1B2230 (Text 1) | #A3C4DC (Text 2) | #E8A87C (Text 3) | #3B4558 (Text 4) | #E9EDF2 (Text 5) |
|---|---|---|---|---|---|
| #1B2230 | Same color | 8.71AAA | 7.83AAA | 1.65— | 13.55AAA |
| #A3C4DC | 8.71AAA | Same color | 1.11— | 5.27AA | 1.55— |
| #E8A87C | 7.83AAA | 1.11— | Same color | 4.74AA | 1.73— |
| #3B4558 | 1.65— | 5.27AA | 4.74AA | Same color | 8.20AAA |
| #E9EDF2 | 13.55AAA | 1.55— | 1.73— | 8.20AAA | Same color |
Shades
Shades and tints (50–950)
