PreviewingGo to this paletteOpen in generator
Code
/* Midnight Teal — colorset.net */
:root {
--color-1: #003B46;
--color-2: #004D5C;
--color-3: #005F73;
--color-4: #00758A;
--color-5: #1A8FA1;
--color-bg: #E8FBFF;
--color-surface: #DFF1F5;
--color-border: #C3DADE;
--color-text: #003B46;
--color-muted: #50717A;
--color-primary: #007F91;
--color-on-primary: #FFFFFF;
--color-accent: #004D5C;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #041216;
--color-surface: #0C1C20;
--color-border: #1D3237;
--color-text: #80ADB6;
--color-muted: #678990;
--color-primary: #007F91;
--color-on-primary: #FFFFFF;
--color-accent: #62B2C1;
--color-on-accent: #041216;
}
}
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 #1A8FA1 | adjusted for contrast · from #003B46 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #1A8FA1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #00758A | adjusted for contrast · from #00758A |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #1A8FA1 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.48:1 | AAA pass 4.5:1 | |
| Text on surface | 10.52:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 4.72:1 | AA pass 4.5:1 | |
| Label on accent | 9.48:1 | AAA pass 4.5:1 | |
| Primary on background | 4.43:1 | AA Large pass 3:1 | |
| Accent on background | 8.88:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.77:1 | AAA pass 4.5:1 | |
| Text on surface | 7.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 4.72:1 | AA pass 4.5:1 | |
| Label on accent | 7.85:1 | AAA pass 4.5:1 | |
| Primary on background | 4.03:1 | AA Large pass 3:1 | |
| Accent on background | 7.85:1 | AAA 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 | #003B46 (Text 1) | #004D5C (Text 2) | #005F73 (Text 3) | #00758A (Text 4) | #1A8FA1 (Text 5) |
|---|---|---|---|---|---|
| #003B46 | Same color | 1.29— | 1.68— | 2.28— | 3.20AA Large |
| #004D5C | 1.29— | Same color | 1.30— | 1.77— | 2.48— |
| #005F73 | 1.68— | 1.30— | Same color | 1.36— | 1.90— |
| #00758A | 2.28— | 1.77— | 1.36— | Same color | 1.40— |
| #1A8FA1 | 3.20AA Large | 2.48— | 1.90— | 1.40— | Same color |
Shades
Shades and tints (50–950)
