Export

Code

/* Midnight Gray — colorset.net */
:root {
  --color-1: #2F4F4F;
  --color-2: #3A5A5A;
  --color-3: #456565;
  --color-4: #507070;
  --color-5: #5B7B7B;

  --color-bg: #EFF9F9;
  --color-surface: #E6F0F0;
  --color-border: #CAD8D8;
  --color-text: #2F4F4F;
  --color-muted: #507171;
  --color-primary: #5B7B7B;
  --color-on-primary: #FFFFFF;
  --color-accent: #456565;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #071111;
    --color-surface: #111C1C;
    --color-border: #223131;
    --color-text: #8AACAC;
    --color-muted: #698A8A;
    --color-primary: #5B7B7B;
    --color-on-primary: #FFFFFF;
    --color-accent: #91AEAE;
    --color-on-accent: #071111;
  }
}

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 #5B7B7Badjusted for contrast · from #2F4F4F
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 1adjusted for contrast · from #5B7B7B
Muted textderivedderived
Primaryfrom palette · color 5from palette · color 5
On primaryderivedderived
Accentfrom palette · color 3adjusted for contrast · from #5B7B7B
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background8.33:1AAA pass 4.5:1
Text on surface7.69:1AAA pass 4.5:1
Muted text on background4.97:1AA pass 4.5:1
Label on primary4.60:1AA pass 4.5:1
Label on accent6.36:1AA pass 4.5:1
Primary on background4.29:1AA Large pass 3:1
Accent on background5.93:1AA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.82:1AAA pass 4.5:1
Text on surface7.11:1AAA pass 4.5:1
Muted text on background5.11:1AA pass 4.5:1
Label on primary4.60:1AA pass 4.5:1
Label on accent8.08:1AAA pass 4.5:1
Primary on background4.16:1AA Large pass 3:1
Accent on background8.08:1AAA 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#2F4F4F (Text 1)#3A5A5A (Text 2)#456565 (Text 3)#507070 (Text 4)#5B7B7B (Text 5)
#2F4F4FSame color1.19—1.40—1.65—1.94—
#3A5A5A1.19—Same color1.18—1.40—1.64—
#4565651.40—1.18—Same color1.18—1.38—
#5070701.65—1.40—1.18—Same color1.17—
#5B7B7B1.94—1.64—1.38—1.17—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#2F4F4F#3A5A5A#456565#507070#5B7B7B

Variations

About Midnight Gray

Nearly all of the color weight in Midnight Gray sits in teal, which makes it a cool palette anchored by dusty teal #456565. With a hue spread of just 0°, it is effectively monochromatic: #2F4F4F, #3A5A5A and #456565 differ mostly in lightness. All five colors stay in a narrow mid-tone band (40% to 56% lightness, #2F4F4F to #5B7B7B), so text and background roles are adjusted for contrast. Saturation is low (mean OKLCH chroma 0.037, peaking at 0.038 in #2F4F4F); the colors feel soft and muted. Text contrast reaches 8.3:1 in light mode and 7.8:1 in dark mode, with #5B7B7B as primary and #456565 as accent. Try it for spa and wellness brands, productivity tools and minimal branding, letting dusty teal #5B7B7B carry the key actions.

Midnight Gray color palette: #2F4F4F, #3A5A5A, #456565, #507070, #5B7B7B
Share image for Midnight Gray

Gradients in similar colors