PreviewingGo to this paletteOpen in generator
Code
/* Midnight Dark — colorset.net */
:root {
--color-1: #000033;
--color-2: #0A0A2E;
--color-3: #191970;
--color-4: #2C2C54;
--color-5: #3F3F7F;
--color-bg: #F5F6FF;
--color-surface: #EBECFB;
--color-border: #D1D3E6;
--color-text: #00022F;
--color-muted: #566279;
--color-primary: #191970;
--color-on-primary: #FFFFFF;
--color-accent: #3F3F7F;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #11192A;
--color-border: #242E42;
--color-text: #9FA2C5;
--color-muted: #7E819B;
--color-primary: #4E5FBA;
--color-on-primary: #FFFFFF;
--color-accent: #5C6490;
--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 #3F3F7F | adjusted for contrast · from #0A0A2E |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #000033 | adjusted for contrast · from #3F3F7F |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #3F3F7F |
| On primary | derived | derived |
| Accent | from palette · color 5 | adjusted for contrast · from #3F3F7F |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.58:1 | AAA pass 4.5:1 | |
| Text on surface | 17.07:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.71:1 | AA pass 4.5:1 | |
| Label on primary | 14.85:1 | AAA pass 4.5:1 | |
| Label on accent | 9.42:1 | AAA pass 4.5:1 | |
| Primary on background | 13.79:1 | AAA pass 3:1 | |
| Accent on background | 8.75:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.69:1 | AAA pass 4.5:1 | |
| Text on surface | 7.06:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 5.72:1 | AA pass 4.5:1 | |
| Label on accent | 5.71:1 | AA pass 4.5:1 | |
| Primary on background | 3.34: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 | #000033 (Text 1) | #0A0A2E (Text 2) | #191970 (Text 3) | #2C2C54 (Text 4) | #3F3F7F (Text 5) |
|---|---|---|---|---|---|
| #000033 | Same color | 1.05— | 1.35— | 1.52— | 2.13— |
| #0A0A2E | 1.05— | Same color | 1.29— | 1.46— | 2.03— |
| #191970 | 1.35— | 1.29— | Same color | 1.13— | 1.58— |
| #2C2C54 | 1.52— | 1.46— | 1.13— | Same color | 1.40— |
| #3F3F7F | 2.13— | 2.03— | 1.58— | 1.40— | Same color |
Shades
Shades and tints (50–950)
