Midnight Trench

Export

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

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 #6699CCfrom palette · color 1
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 1adjusted for contrast · from #6699CC
Muted textderivedderived
Primaryfrom palette · color 4adjusted for contrast · from #336699
On primaryderivedderived
Accentfrom palette · color 2from palette · color 5
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background17.78:1AAA pass 4.5:1
Text on surface16.35:1AAA pass 4.5:1
Muted text on background5.33:1AA pass 4.5:1
Label on primary6.00:1AA pass 4.5:1
Label on accent13.49:1AAA pass 4.5:1
Primary on background5.60:1AA pass 3:1
Accent on background12.60:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.92:1AAA pass 4.5:1
Text on surface7.21:1AAA pass 4.5:1
Muted text on background5.13:1AA pass 4.5:1
Label on primary5.74:1AA pass 4.5:1
Label on accent6.34:1AA pass 4.5:1
Primary on background3.32:1AA Large pass 3:1
Accent on background6.34:1AA 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#001122 (Text 1)#003344 (Text 2)#004466 (Text 3)#336699 (Text 4)#6699CC (Text 5)
#001122Same color1.41—1.83—3.17AA Large6.34AA
#0033441.41—Same color1.30—2.25—4.49AA Large
#0044661.83—1.30—Same color1.73—3.46AA Large
#3366993.17AA Large2.25—1.73—Same color2.00—
#6699CC6.34AA4.49AA Large3.46AA Large2.00—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#001122#003344#004466#336699#6699CC

Variations

About Midnight Trench

Midnight Trench is a cool blue palette of 5 colors that runs from blue #6699CC to deep blue #001122. With a hue spread of just 23°, it is effectively monochromatic: #001122, #003344 and #004466 differ mostly in lightness. Lightness spans 17% (#001122) to 67% (#6699CC), a moderate range; text roles may need slight darkening for full contrast. Saturation is low (mean OKLCH chroma 0.076, peaking at 0.099 in #336699); the colors feel soft and muted. In light mode #F1F8FF becomes the background with #001122 text at 17.8:1, and #336699 takes the primary role. With #336699 leading, good fits include fintech and banking apps, SaaS dashboards and luxury products.

Midnight Trench color palette: #001122, #003344, #004466, #336699, #6699CC
Share image for Midnight Trench

Gradients in similar colors