PreviewingGo to this paletteOpen in generator
Code
/* Midnight Trench — colorset.net */
:root {
--color-1: #001122;
--color-2: #003344;
--color-3: #004466;
--color-4: #336699;
--color-5: #6699CC;
--color-bg: #F1F8FF;
--color-surface: #E4EFFB;
--color-border: #C9D7E5;
--color-text: #001122;
--color-muted: #53697C;
--color-primary: #336699;
--color-on-primary: #FFFFFF;
--color-accent: #003344;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #001122;
--color-surface: #061C2D;
--color-border: #1D3041;
--color-text: #8FAAC6;
--color-muted: #72879C;
--color-primary: #36699C;
--color-on-primary: #FFFFFF;
--color-accent: #6699CC;
--color-on-accent: #001122;
}
}
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 #6699CC | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #6699CC |
| Muted text | derived | derived |
| Primary | from palette · color 4 | adjusted for contrast · from #336699 |
| On primary | derived | derived |
| Accent | from palette · color 2 | from palette · color 5 |
| 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 | 6.00:1 | AA pass 4.5:1 | |
| Label on accent | 13.49:1 | AAA pass 4.5:1 | |
| Primary on background | 5.60:1 | AA pass 3:1 | |
| Accent on background | 12.60:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.92:1 | AAA pass 4.5:1 | |
| Text on surface | 7.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.13:1 | AA pass 4.5:1 | |
| Label on primary | 5.74:1 | AA pass 4.5:1 | |
| Label on accent | 6.34:1 | AA pass 4.5:1 | |
| Primary on background | 3.32:1 | AA Large pass 3:1 | |
| Accent on background | 6.34: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 | #001122 (Text 1) | #003344 (Text 2) | #004466 (Text 3) | #336699 (Text 4) | #6699CC (Text 5) |
|---|---|---|---|---|---|
| #001122 | Same color | 1.41— | 1.83— | 3.17AA Large | 6.34AA |
| #003344 | 1.41— | Same color | 1.30— | 2.25— | 4.49AA Large |
| #004466 | 1.83— | 1.30— | Same color | 1.73— | 3.46AA Large |
| #336699 | 3.17AA Large | 2.25— | 1.73— | Same color | 2.00— |
| #6699CC | 6.34AA | 4.49AA Large | 3.46AA Large | 2.00— | Same color |
Shades
Shades and tints (50–950)
