Midnight Ocean

Export

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

ColorHEXRGBHSLOKLCH
1
2
3
4
5

Roles & contrast

Original colors are kept; roles are adjusted only when needed for contrast.

RoleLight modeDark mode
Backgroundadjusted for contrast · from #5D6D7Efrom palette · color 2
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 2adjusted for contrast · from #5D6D7E
Muted textderivedderived
Primaryfrom palette · color 1adjusted for contrast · from #5D6D7E
On primaryderivedderived
Accentfrom palette · color 4adjusted for contrast · from #5D6D7E
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background15.28:1AAA pass 4.5:1
Text on surface14.10:1AAA pass 4.5:1
Muted text on background4.90:1AA pass 4.5:1
Label on primary8.98:1AAA pass 4.5:1
Label on accent9.29:1AAA pass 4.5:1
Primary on background8.34:1AAA pass 3:1
Accent on background8.62:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background8.19:1AAA pass 4.5:1
Text on surface7.14:1AAA pass 4.5:1
Muted text on background5.36:1AA pass 4.5:1
Label on primary4.75:1AA pass 4.5:1
Label on accent4.69:1AA pass 4.5:1
Primary on background3.47:1AA Large pass 3:1
Accent on background3.50:1AA 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.

Every color on every color
Background / Text#0B5345 (Text 1)#17202A (Text 2)#283747 (Text 3)#34495E (Text 4)#5D6D7E (Text 5)
#0B5345Same color1.83—1.35—1.03—1.69—
#17202A1.83—Same color1.35—1.77—3.10AA Large
#2837471.35—1.35—Same color1.31—2.29—
#34495E1.03—1.77—1.31—Same color1.75—
#5D6D7E1.69—3.10AA Large2.29—1.75—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#0B5345#17202A#283747#34495E#5D6D7E

Variations

About Midnight Ocean

Midnight Ocean brings together a dark teal, a charcoal, two slates and a dark blue (#0B5345, #17202A, #283747, #34495E, #5D6D7E) in a balanced, multi-color-led scheme. Its hues are neighbors on the color wheel (74° apart at most), so #0B5345 and #34495E form a calm analogous harmony. From #17202A to #5D6D7E the colors share a similar dark value (lightness 24%–53%), which suits fills and illustration more than body text. Average chroma is 0.041, low for a palette, so the colors feel soft and muted; the most saturated color is #0B5345. In light mode #F2F7FD becomes the background with #17202A text at 15.3:1, and #0B5345 takes the primary role. Try it for gaming sites, dark-mode dashboards and film and media, letting dark teal #0B5345 carry the key actions.

Midnight Ocean color palette: #0B5345, #17202A, #283747, #34495E, #5D6D7E
Share image for Midnight Ocean

Gradients in similar colors