PreviewingGo to this paletteOpen in generator
Code
/* Night Swim — colorset.net */
:root {
--color-1: #000911;
--color-2: #001623;
--color-3: #002A3E;
--color-4: #0096AF;
--color-5: #C2DDE2;
--color-bg: #F0F9FA;
--color-surface: #E7EFF1;
--color-border: #CBD8DA;
--color-text: #000911;
--color-muted: #50626D;
--color-primary: #008298;
--color-on-primary: #FFFFFF;
--color-accent: #001623;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #000911;
--color-surface: #04131B;
--color-border: #142732;
--color-text: #C2DDE2;
--color-muted: #688186;
--color-primary: #008298;
--color-on-primary: #FFFFFF;
--color-accent: #52646F;
--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 #C2DDE2 | 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 #0096AF | adjusted for contrast · from #0096AF |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #0096AF |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.75:1 | AAA pass 4.5:1 | |
| Text on surface | 17.20:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.93:1 | AA pass 4.5:1 | |
| Label on primary | 4.52:1 | AA pass 4.5:1 | |
| Label on accent | 18.44:1 | AAA pass 4.5:1 | |
| Primary on background | 4.23:1 | AA Large pass 3:1 | |
| Accent on background | 17.24:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.07:1 | AAA pass 4.5:1 | |
| Text on surface | 13.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.84:1 | AA pass 4.5:1 | |
| Label on primary | 4.52:1 | AA pass 4.5:1 | |
| Label on accent | 6.16:1 | AA pass 4.5:1 | |
| Primary on background | 4.44:1 | AA Large pass 3:1 | |
| Accent on background | 3.26: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 | #000911 (Text 1) | #001623 (Text 2) | #002A3E (Text 3) | #0096AF (Text 4) | #C2DDE2 (Text 5) |
|---|---|---|---|---|---|
| #000911 | Same color | 1.09— | 1.34— | 5.71AA | 14.07AAA |
| #001623 | 1.09— | Same color | 1.23— | 5.25AA | 12.94AAA |
| #002A3E | 1.34— | 1.23— | Same color | 4.27AA Large | 10.52AAA |
| #0096AF | 5.71AA | 5.25AA | 4.27AA Large | Same color | 2.46— |
| #C2DDE2 | 14.07AAA | 12.94AAA | 10.52AAA | 2.46— | Same color |
Shades
Shades and tints (50–950)
