PreviewingGo to this paletteOpen in generator
Code
/* Midnight Swim — colorset.net */
:root {
--color-1: #001122;
--color-2: #003366;
--color-3: #0066CC;
--color-4: #3399FF;
--color-5: #99CCFF;
--color-bg: #F1F8FF;
--color-surface: #E4EFFB;
--color-border: #C9D7E5;
--color-text: #001122;
--color-muted: #53697C;
--color-primary: #0066CC;
--color-on-primary: #FFFFFF;
--color-accent: #5C8DBD;
--color-on-accent: #001122;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #001122;
--color-surface: #061C2D;
--color-border: #1D3041;
--color-text: #AECAE6;
--color-muted: #72869B;
--color-primary: #0066CC;
--color-on-primary: #FFFFFF;
--color-accent: #526A7F;
--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 #99CCFF | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #99CCFF |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #3399FF | adjusted for contrast · from #0066CC |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.78:1 | AAA pass 4.5:1 | |
| Text on surface | 16.35:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.33:1 | AA pass 4.5:1 | |
| Label on primary | 5.57:1 | AA pass 4.5:1 | |
| Label on accent | 5.44:1 | AA pass 4.5:1 | |
| Primary on background | 5.20:1 | AA pass 3:1 | |
| Accent on background | 3.27:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.23:1 | AAA pass 4.5:1 | |
| Text on surface | 10.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 5.57:1 | AA pass 4.5:1 | |
| Label on accent | 5.63:1 | AA pass 4.5:1 | |
| Primary on background | 3.42:1 | AA Large pass 3:1 | |
| Accent on background | 3.38: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 | #001122 (Text 1) | #003366 (Text 2) | #0066CC (Text 3) | #3399FF (Text 4) | #99CCFF (Text 5) |
|---|---|---|---|---|---|
| #001122 | Same color | 1.51— | 3.42AA Large | 6.47AA | 11.27AAA |
| #003366 | 1.51— | Same color | 2.27— | 4.29AA Large | 7.47AAA |
| #0066CC | 3.42AA Large | 2.27— | Same color | 1.89— | 3.30AA Large |
| #3399FF | 6.47AA | 4.29AA Large | 1.89— | Same color | 1.74— |
| #99CCFF | 11.27AAA | 7.47AAA | 3.30AA Large | 1.74— | Same color |
Shades
Shades and tints (50–950)
