Export

Code

/* Midnight Ink — colorset.net */
:root {
  --color-1: #000000;
  --color-2: #1A1A1A;
  --color-3: #333333;
  --color-4: #4D4D4D;
  --color-5: #666666;

  --color-bg: #F7F7F7;
  --color-surface: #EDEDED;
  --color-border: #D8D3D5;
  --color-text: #000000;
  --color-muted: #4A4A4A;
  --color-primary: #666666;
  --color-on-primary: #FFFFFF;
  --color-accent: #1A1A1A;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #000000;
    --color-surface: #000000;
    --color-border: #090707;
    --color-text: #959595;
    --color-muted: #777777;
    --color-primary: #666666;
    --color-on-primary: #FFFFFF;
    --color-accent: #989898;
    --color-on-accent: #000000;
  }
}

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

Contrast

Light mode
PairSampleRatioWCAG
Text on background19.60:1AAA pass 4.5:1
Text on surface17.94:1AAA pass 4.5:1
Muted text on background8.27:1AAA pass 4.5:1
Label on primary5.74:1AA pass 4.5:1
Label on accent17.40:1AAA pass 4.5:1
Primary on background5.36:1AA pass 3:1
Accent on background16.25:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.01:1AAA pass 4.5:1
Text on surface7.01:1AAA pass 4.5:1
Muted text on background4.69:1AA pass 4.5:1
Label on primary5.74:1AA pass 4.5:1
Label on accent7.28:1AAA pass 4.5:1
Primary on background3.66:1AA Large pass 3:1
Accent on background7.28: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#000000 (Text 1)#1A1A1A (Text 2)#333333 (Text 3)#4D4D4D (Text 4)#666666 (Text 5)
#000000Same color1.21—1.66—2.48—3.66AA Large
#1A1A1A1.21—Same color1.38—2.06—3.03AA Large
#3333331.66—1.38—Same color1.49—2.20—
#4D4D4D2.48—2.06—1.49—Same color1.47—
#6666663.66AA Large3.03AA Large2.20—1.47—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#000000#1A1A1A#333333#4D4D4D#666666

Variations

About Midnight Ink

Midnight Ink brings together a near-black, a charcoal and three slates (#000000, #1A1A1A, #333333, #4D4D4D, #666666) in a balanced, neutral-led scheme. Every color is a neutral, from #666666 down to #000000, so the palette works through light and shade alone. With lightness between 0% and 51% and #333333 near the middle, there is enough spread for layered surfaces but not maximum text contrast. There is effectively no chroma in any of the colors, so #333333 and the rest read as pure grays. As a UI theme it uses #666666 for primary actions and #1A1A1A as the accent; dark mode sits on #000000 with #959595 text (7.0:1). Its dark and monochrome character, led by #666666, suits architecture studios, documentation sites and focused single-product sites.

Midnight Ink color palette: #000000, #1A1A1A, #333333, #4D4D4D, #666666
Share image for Midnight Ink

Gradients in similar colors