PreviewingGo to this paletteOpen in generator
Code
/* Midnight Blue — colorset.net */
:root {
--color-1: #001F3F;
--color-2: #003366;
--color-3: #004080;
--color-4: #0066CC;
--color-5: #3399FF;
--color-bg: #F1F8FF;
--color-surface: #E4EFFB;
--color-border: #CAD6E5;
--color-text: #001F3F;
--color-muted: #5B6D82;
--color-primary: #0066CC;
--color-on-primary: #FFFFFF;
--color-accent: #003366;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #06101B;
--color-surface: #101A26;
--color-border: #212F3E;
--color-text: #90A9C5;
--color-muted: #708399;
--color-primary: #0066CC;
--color-on-primary: #FFFFFF;
--color-accent: #47688D;
--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 #3399FF | adjusted for contrast · from #001F3F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #3399FF |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #0066CC |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.47:1 | AAA pass 4.5:1 | |
| Text on surface | 14.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 5.57:1 | AA pass 4.5:1 | |
| Label on accent | 12.61:1 | AAA pass 4.5:1 | |
| Primary on background | 5.20:1 | AA pass 3:1 | |
| Accent on background | 11.78:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.90:1 | AAA pass 4.5:1 | |
| Text on surface | 7.24:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 5.57:1 | AA pass 4.5:1 | |
| Label on accent | 5.78:1 | AA pass 4.5:1 | |
| Primary on background | 3.44:1 | AA Large pass 3:1 | |
| Accent on background | 3.31: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 | #001F3F (Text 1) | #003366 (Text 2) | #004080 (Text 3) | #0066CC (Text 4) | #3399FF (Text 5) |
|---|---|---|---|---|---|
| #001F3F | Same color | 1.31— | 1.61— | 2.98— | 5.63AA |
| #003366 | 1.31— | Same color | 1.23— | 2.27— | 4.29AA Large |
| #004080 | 1.61— | 1.23— | Same color | 1.84— | 3.49AA Large |
| #0066CC | 2.98— | 2.27— | 1.84— | Same color | 1.89— |
| #3399FF | 5.63AA | 4.29AA Large | 3.49AA Large | 1.89— | Same color |
Shades
Shades and tints (50–950)
