Midnight Charcoal

Export

Code

/* Midnight Charcoal — colorset.net */
:root {
  --color-1: #101010;
  --color-2: #1C1C1C;
  --color-3: #282828;
  --color-4: #36454F;
  --color-5: #404040;

  --color-bg: #F2F8FB;
  --color-surface: #E9EEF2;
  --color-border: #CDD6DC;
  --color-text: #101010;
  --color-muted: #666666;
  --color-primary: #36454F;
  --color-on-primary: #FFFFFF;
  --color-accent: #1C1C1C;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #101010;
    --color-surface: #1A1A1A;
    --color-border: #312E2E;
    --color-text: #97A8B4;
    --color-muted: #768691;
    --color-primary: #596974;
    --color-on-primary: #FFFFFF;
    --color-accent: #8D9BA5;
    --color-on-accent: #101010;
  }
}

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 #36454Ffrom palette · color 1
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 1adjusted for contrast · from #36454F
Muted textderivedderived
Primaryfrom palette · color 4adjusted for contrast · from #36454F
On primaryderivedderived
Accentfrom palette · color 2adjusted for contrast · from #36454F
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background17.76:1AAA pass 4.5:1
Text on surface16.29:1AAA pass 4.5:1
Muted text on background5.36:1AA pass 4.5:1
Label on primary9.90:1AAA pass 4.5:1
Label on accent17.04:1AAA pass 4.5:1
Primary on background9.24:1AAA pass 3:1
Accent on background15.90:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.77:1AAA pass 4.5:1
Text on surface7.11:1AAA pass 4.5:1
Muted text on background5.06:1AA pass 4.5:1
Label on primary5.68:1AA pass 4.5:1
Label on accent6.67:1AA pass 4.5:1
Primary on background3.35:1AA Large pass 3:1
Accent on background6.67: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#101010 (Text 1)#1C1C1C (Text 2)#282828 (Text 3)#36454F (Text 4)#404040 (Text 5)
#101010Same color1.12—1.29—1.92—1.84—
#1C1C1C1.12—Same color1.16—1.72—1.64—
#2828281.29—1.16—Same color1.49—1.42—
#36454F1.92—1.72—1.49—Same color1.05—
#4040401.84—1.64—1.42—1.05—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#101010#1C1C1C#282828#36454F#404040

Variations

About Midnight Charcoal

Five colors make up Midnight Charcoal, a balanced neutral set: #101010, #1C1C1C, #282828, #36454F, #404040. Every color is a neutral, from #36454F down to #101010, so the palette works through light and shade alone. From #101010 to #36454F the colors share a similar dark value (lightness 17%–38%), which suits fills and illustration more than body text. Average chroma is 0.005, very low for a palette, so the palette is close to grayscale; the most saturated color is #36454F. In light mode #F2F8FB becomes the background with #101010 text at 17.8:1, and #36454F takes the primary role. Try it for editorial layouts, minimal portfolios and icons and logos, letting slate #36454F carry the key actions.

Midnight Charcoal color palette: #101010, #1C1C1C, #282828, #36454F, #404040
Share image for Midnight Charcoal

Gradients in similar colors