PreviewingGo to this paletteOpen in generator
Code
/* Midnight Storm — colorset.net */
:root {
--color-1: #222F3E;
--color-2: #FF6B6B;
--color-3: #4834D4;
--color-4: #686DE0;
--color-5: #30336B;
--color-bg: #FFF4F3;
--color-surface: #FBE9E7;
--color-border: #E5CFCD;
--color-text: #222F3E;
--color-muted: #5D6C7D;
--color-primary: #4834D4;
--color-on-primary: #FFFFFF;
--color-accent: #D04045;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0B1015;
--color-surface: #151A1F;
--color-border: #272F37;
--color-text: #C69C9A;
--color-muted: #9C7C7A;
--color-primary: #584EED;
--color-on-primary: #FFFFFF;
--color-accent: #FF6B6B;
--color-on-accent: #0B1015;
}
}
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 #FF6B6B | adjusted for contrast · from #222F3E |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #FF6B6B |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #4834D4 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FF6B6B | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.62:1 | AAA pass 4.5:1 | |
| Text on surface | 11.60:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 7.73:1 | AAA pass 4.5:1 | |
| Label on accent | 4.67:1 | AA pass 4.5:1 | |
| Primary on background | 7.17:1 | AAA pass 3:1 | |
| Accent on background | 4.33:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.85:1 | AAA pass 4.5:1 | |
| Text on surface | 7.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 5.63:1 | AA pass 4.5:1 | |
| Label on accent | 6.88:1 | AA pass 4.5:1 | |
| Primary on background | 3.39:1 | AA Large pass 3:1 | |
| Accent on background | 6.88:1 | AA 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 | #222F3E (Text 1) | #FF6B6B (Text 2) | #4834D4 (Text 3) | #686DE0 (Text 4) | #30336B (Text 5) |
|---|---|---|---|---|---|
| #222F3E | Same color | 4.90AA | 1.76— | 3.14AA Large | 1.17— |
| #FF6B6B | 4.90AA | Same color | 2.78— | 1.56— | 4.18AA Large |
| #4834D4 | 1.76— | 2.78— | Same color | 1.79— | 1.50— |
| #686DE0 | 3.14AA Large | 1.56— | 1.79— | Same color | 2.68— |
| #30336B | 1.17— | 4.18AA Large | 1.50— | 2.68— | Same color |
Shades
Shades and tints (50–950)
