PreviewingGo to this paletteOpen in generator
Code
/* Midnight Flight — colorset.net */
:root {
--color-1: #08152C;
--color-2: #7FBEF3;
--color-3: #F290A0;
--color-4: #1E3761;
--color-5: #E7F0F8;
--color-bg: #E7F0F8;
--color-surface: #F1F7FC;
--color-border: #CCD8E2;
--color-text: #08152C;
--color-muted: #5A687F;
--color-primary: #B5596A;
--color-on-primary: #FFFFFF;
--color-accent: #1E3761;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #08152C;
--color-surface: #122038;
--color-border: #29354A;
--color-text: #E7F0F8;
--color-muted: #848C93;
--color-primary: #F290A0;
--color-on-primary: #08152C;
--color-accent: #5B6C89;
--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 | 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 #F290A0 | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 4 | adjusted for contrast · from #1E3761 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.79:1 | AAA pass 4.5:1 | |
| Text on surface | 16.86:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.90:1 | AA pass 4.5:1 | |
| Label on primary | 4.56:1 | AA pass 4.5:1 | |
| Label on accent | 11.84:1 | AAA pass 4.5:1 | |
| Primary on background | 3.96:1 | AA Large pass 3:1 | |
| Accent on background | 10.27:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.79:1 | AAA pass 4.5:1 | |
| Text on surface | 14.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.33:1 | AA pass 4.5:1 | |
| Label on primary | 8.04:1 | AAA pass 4.5:1 | |
| Label on accent | 5.31:1 | AA pass 4.5:1 | |
| Primary on background | 8.04:1 | AAA pass 3:1 | |
| Accent on background | 3.42: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 | #08152C (Text 1) | #7FBEF3 (Text 2) | #F290A0 (Text 3) | #1E3761 (Text 4) | #E7F0F8 (Text 5) |
|---|---|---|---|---|---|
| #08152C | Same color | 9.15AAA | 8.04AAA | 1.54— | 15.79AAA |
| #7FBEF3 | 9.15AAA | Same color | 1.14— | 5.95AA | 1.72— |
| #F290A0 | 8.04AAA | 1.14— | Same color | 5.23AA | 1.96— |
| #1E3761 | 1.54— | 5.95AA | 5.23AA | Same color | 10.27AAA |
| #E7F0F8 | 15.79AAA | 1.72— | 1.96— | 10.27AAA | Same color |
Shades
Shades and tints (50–950)
