PreviewingGo to this paletteOpen in generator
Code
/* Midnight Ocean — colorset.net */
:root {
--color-1: #0B5345;
--color-2: #17202A;
--color-3: #283747;
--color-4: #34495E;
--color-5: #5D6D7E;
--color-bg: #F2F7FD;
--color-surface: #E9EEF4;
--color-border: #CED6DF;
--color-text: #17202A;
--color-muted: #626D79;
--color-primary: #0B5345;
--color-on-primary: #FFFFFF;
--color-accent: #34495E;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #17202A;
--color-surface: #222B35;
--color-border: #35414E;
--color-text: #A7B9CC;
--color-muted: #8495A7;
--color-primary: #3F7E6F;
--color-on-primary: #FFFFFF;
--color-accent: #60768D;
--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 #5D6D7E | from palette · color 2 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 2 | adjusted for contrast · from #5D6D7E |
| Muted text | derived | derived |
| Primary | from palette · color 1 | adjusted for contrast · from #5D6D7E |
| On primary | derived | derived |
| Accent | from palette · color 4 | adjusted for contrast · from #5D6D7E |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.28:1 | AAA pass 4.5:1 | |
| Text on surface | 14.10:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.90:1 | AA pass 4.5:1 | |
| Label on primary | 8.98:1 | AAA pass 4.5:1 | |
| Label on accent | 9.29:1 | AAA pass 4.5:1 | |
| Primary on background | 8.34:1 | AAA pass 3:1 | |
| Accent on background | 8.62:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.19:1 | AAA pass 4.5:1 | |
| Text on surface | 7.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.36:1 | AA pass 4.5:1 | |
| Label on primary | 4.75:1 | AA pass 4.5:1 | |
| Label on accent | 4.69:1 | AA pass 4.5:1 | |
| Primary on background | 3.47:1 | AA Large pass 3:1 | |
| Accent on background | 3.50: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 | #0B5345 (Text 1) | #17202A (Text 2) | #283747 (Text 3) | #34495E (Text 4) | #5D6D7E (Text 5) |
|---|---|---|---|---|---|
| #0B5345 | Same color | 1.83— | 1.35— | 1.03— | 1.69— |
| #17202A | 1.83— | Same color | 1.35— | 1.77— | 3.10AA Large |
| #283747 | 1.35— | 1.35— | Same color | 1.31— | 2.29— |
| #34495E | 1.03— | 1.77— | 1.31— | Same color | 1.75— |
| #5D6D7E | 1.69— | 3.10AA Large | 2.29— | 1.75— | Same color |
Shades
Shades and tints (50–950)
