Export

Code

/* Gray Night — colorset.net */
:root {
  --color-1: #111827;
  --color-2: #1F2937;
  --color-3: #374151;
  --color-4: #4B5563;
  --color-5: #6B7280;

  --color-bg: #F4F7FC;
  --color-surface: #EBEDF2;
  --color-border: #D1D5DD;
  --color-text: #111827;
  --color-muted: #636C7F;
  --color-primary: #6B7280;
  --color-on-primary: #FFFFFF;
  --color-accent: #1F2937;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #111827;
    --color-surface: #1B2332;
    --color-border: #2E384B;
    --color-text: #A7AEBE;
    --color-muted: #838A99;
    --color-primary: #6B7280;
    --color-on-primary: #FFFFFF;
    --color-accent: #9FA5B2;
    --color-on-accent: #111827;
  }
}

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

Contrast

Light mode
PairSampleRatioWCAG
Text on background16.52:1AAA pass 4.5:1
Text on surface15.14:1AAA pass 4.5:1
Muted text on background4.91:1AA pass 4.5:1
Label on primary4.83:1AA pass 4.5:1
Label on accent14.68:1AAA pass 4.5:1
Primary on background4.50:1AA pass 3:1
Accent on background13.67:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.98:1AAA pass 4.5:1
Text on surface7.08:1AAA pass 4.5:1
Muted text on background5.12:1AA pass 4.5:1
Label on primary4.83:1AA pass 4.5:1
Label on accent7.18:1AAA pass 4.5:1
Primary on background3.67:1AA Large pass 3:1
Accent on background7.18: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#111827 (Text 1)#1F2937 (Text 2)#374151 (Text 3)#4B5563 (Text 4)#6B7280 (Text 5)
#111827Same color1.21—1.72—2.35—3.67AA Large
#1F29371.21—Same color1.42—1.94—3.04AA Large
#3741511.72—1.42—Same color1.36—2.13—
#4B55632.35—1.94—1.36—Same color1.56—
#6B72803.67AA Large3.04AA Large2.13—1.56—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#111827#1F2937#374151#4B5563#6B7280

Variations

About Gray Night

Nearly all of the color weight in Gray Night sits in neutral, which makes it a balanced palette anchored by slate #374151. There is no real hue here; neutrals between #111827 and #6B7280 do all the work with value contrast. Lightness spans 21% (#111827) to 55% (#6B7280), a moderate range; text roles may need slight darkening for full contrast. Saturation is very low (mean OKLCH chroma 0.028, peaking at 0.032 in #111827); the palette is close to grayscale. As a UI theme it uses #6B7280 for primary actions and #1F2937 as the accent; dark mode sits on #111827 with #A7AEBE text (8.0:1). With #6B7280 leading, good fits include dark-mode dashboards, gaming sites and luxury products.

These colors are almost the same as Blue Night.

Gray Night color palette: #111827, #1F2937, #374151, #4B5563, #6B7280
Share image for Gray Night

Gradients in similar colors