Export

Code

/* Midnight Dark — colorset.net */
:root {
  --color-1: #000033;
  --color-2: #0A0A2E;
  --color-3: #191970;
  --color-4: #2C2C54;
  --color-5: #3F3F7F;

  --color-bg: #F5F6FF;
  --color-surface: #EBECFB;
  --color-border: #D1D3E6;
  --color-text: #00022F;
  --color-muted: #566279;
  --color-primary: #191970;
  --color-on-primary: #FFFFFF;
  --color-accent: #3F3F7F;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #080F1F;
    --color-surface: #11192A;
    --color-border: #242E42;
    --color-text: #9FA2C5;
    --color-muted: #7E819B;
    --color-primary: #4E5FBA;
    --color-on-primary: #FFFFFF;
    --color-accent: #5C6490;
    --color-on-accent: #FFFFFF;
  }
}

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 #3F3F7Fadjusted for contrast · from #0A0A2E
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #000033adjusted for contrast · from #3F3F7F
Muted textderivedderived
Primaryfrom palette · color 3adjusted for contrast · from #3F3F7F
On primaryderivedderived
Accentfrom palette · color 5adjusted for contrast · from #3F3F7F
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background18.58:1AAA pass 4.5:1
Text on surface17.07:1AAA pass 4.5:1
Muted text on background5.71:1AA pass 4.5:1
Label on primary14.85:1AAA pass 4.5:1
Label on accent9.42:1AAA pass 4.5:1
Primary on background13.79:1AAA pass 3:1
Accent on background8.75:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.69:1AAA pass 4.5:1
Text on surface7.06:1AAA pass 4.5:1
Muted text on background5.01:1AA pass 4.5:1
Label on primary5.72:1AA pass 4.5:1
Label on accent5.71:1AA pass 4.5:1
Primary on background3.34:1AA Large pass 3:1
Accent on background3.35:1AA Large 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#000033 (Text 1)#0A0A2E (Text 2)#191970 (Text 3)#2C2C54 (Text 4)#3F3F7F (Text 5)
#000033Same color1.05—1.35—1.52—2.13—
#0A0A2E1.05—Same color1.29—1.46—2.03—
#1919701.35—1.29—Same color1.13—1.58—
#2C2C541.52—1.46—1.13—Same color1.40—
#3F3F7F2.13—2.03—1.58—1.40—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#000033#0A0A2E#191970#2C2C54#3F3F7F

Variations

About Midnight Dark

No single hue dominates Midnight Dark: blue carries about 49% of the color weight, shared with purple and neutral, and deep blue #191970 sits in the middle of the range. With a hue spread of just 18°, it is effectively monochromatic: #000033, #0A0A2E and #191970 differ mostly in lightness. All five colors stay in a narrow dark band (15% to 40% lightness, #000033 to #3F3F7F), so text and background roles are adjusted for contrast. Saturation is medium (mean OKLCH chroma 0.098, peaking at 0.144 in #191970); the colors are clear without being loud. Text contrast reaches 18.6:1 in light mode and 7.7:1 in dark mode, with #191970 as primary and #3F3F7F as accent. Try it for dark-mode dashboards, gaming sites and luxury products, letting deep blue #191970 carry the key actions.

Midnight Dark color palette: #000033, #0A0A2E, #191970, #2C2C54, #3F3F7F
Share image for Midnight Dark

Gradients in similar colors