PreviewingGo to this paletteOpen in generator
Code
/* Polar Midnight — colorset.net */
:root {
--color-1: #000B11;
--color-2: #021922;
--color-3: #012B39;
--color-4: #0D9298;
--color-5: #B5D1D2;
--color-bg: #F0F9F9;
--color-surface: #E7EFF0;
--color-border: #CBD8D8;
--color-text: #000B11;
--color-muted: #51646C;
--color-primary: #008287;
--color-on-primary: #FFFFFF;
--color-accent: #012B39;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #000B11;
--color-surface: #05151B;
--color-border: #142A32;
--color-text: #B5D1D2;
--color-muted: #688283;
--color-primary: #008287;
--color-on-primary: #FFFFFF;
--color-accent: #436979;
--color-on-accent: #FFFFFF;
}
}
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 #B5D1D2 | 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 #0D9298 | adjusted for contrast · from #0D9298 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #0D9298 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.58:1 | AAA pass 4.5:1 | |
| Text on surface | 17.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.79:1 | AA pass 4.5:1 | |
| Label on primary | 4.62:1 | AA pass 4.5:1 | |
| Label on accent | 14.94:1 | AAA pass 4.5:1 | |
| Primary on background | 4.32:1 | AA Large pass 3:1 | |
| Accent on background | 13.96:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.33:1 | AAA pass 4.5:1 | |
| Text on surface | 11.52:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.84:1 | AA pass 4.5:1 | |
| Label on primary | 4.62:1 | AA pass 4.5:1 | |
| Label on accent | 5.94:1 | AA pass 4.5:1 | |
| Primary on background | 4.30:1 | AA Large pass 3:1 | |
| Accent on background | 3.35:1 | AA Large 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 | #000B11 (Text 1) | #021922 (Text 2) | #012B39 (Text 3) | #0D9298 (Text 4) | #B5D1D2 (Text 5) |
|---|---|---|---|---|---|
| #000B11 | Same color | 1.10— | 1.33— | 5.29AA | 12.33AAA |
| #021922 | 1.10— | Same color | 1.21— | 4.79AA | 11.17AAA |
| #012B39 | 1.33— | 1.21— | Same color | 3.97AA Large | 9.26AAA |
| #0D9298 | 5.29AA | 4.79AA | 3.97AA Large | Same color | 2.33— |
| #B5D1D2 | 12.33AAA | 11.17AAA | 9.26AAA | 2.33— | Same color |
Shades
Shades and tints (50–950)
