Midnight Violet

Export

Code

/* Midnight Violet — colorset.net */
:root {
  --color-1: #191970;
  --color-2: #2F2F4F;
  --color-3: #4B0082;
  --color-4: #663399;
  --color-5: #8A2BE2;

  --color-bg: #F8F5FF;
  --color-surface: #F0EBF9;
  --color-border: #D7D1E3;
  --color-text: #1D2557;
  --color-muted: #636A83;
  --color-primary: #8A2BE2;
  --color-on-primary: #FFFFFF;
  --color-accent: #191970;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0A0E1F;
    --color-surface: #14182A;
    --color-border: #272C42;
    --color-text: #AB9FC1;
    --color-muted: #877E98;
    --color-primary: #8D30E5;
    --color-on-primary: #FFFFFF;
    --color-accent: #4E5FBA;
    --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 #8A2BE2adjusted for contrast · from #2F2F4F
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #2F2F4Fadjusted for contrast · from #8A2BE2
Muted textderivedderived
Primaryfrom palette · color 5adjusted for contrast · from #8A2BE2
On primaryderivedderived
Accentfrom palette · color 1adjusted for contrast · from #663399
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background13.40:1AAA pass 4.5:1
Text on surface12.35:1AAA pass 4.5:1
Muted text on background4.97:1AA pass 4.5:1
Label on primary5.96:1AA pass 4.5:1
Label on accent14.85:1AAA pass 4.5:1
Primary on background5.53:1AA pass 3:1
Accent on background13.78:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.72:1AAA pass 4.5:1
Text on surface7.09:1AAA pass 4.5:1
Muted text on background4.99:1AA pass 4.5:1
Label on primary5.70:1AA pass 4.5:1
Label on accent5.72:1AA pass 4.5:1
Primary on background3.37: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#191970 (Text 1)#2F2F4F (Text 2)#4B0082 (Text 3)#663399 (Text 4)#8A2BE2 (Text 5)
#191970Same color1.16—1.15—1.77—2.49—
#2F2F4F1.16—Same color1.01—1.52—2.15—
#4B00821.15—1.01—Same color1.54—2.17—
#6633991.77—1.52—1.54—Same color1.41—
#8A2BE22.49—2.15—2.17—1.41—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#191970#2F2F4F#4B0082#663399#8A2BE2

Variations

About Midnight Violet

Midnight Violet brings together a deep blue, three dark purples and a vivid purple (#191970, #2F2F4F, #4B0082, #663399, #8A2BE2) in a cool, purple-led scheme. Its hues are neighbors on the color wheel (31° apart at most), so #191970 and #8A2BE2 form a calm analogous harmony. From #191970 to #8A2BE2 the colors share a similar dark value (lightness 29%–53%), which suits fills and illustration more than body text. Average chroma is 0.158, high for a palette, so the colors feel saturated and energetic; the most saturated color is #8A2BE2. In light mode #F8F5FF becomes the background with #1D2557 text at 13.4:1, and #8A2BE2 takes the primary role. Its vivid and dark character, led by #8A2BE2, suits music and nightlife, premium products and sports and fitness apps.

Midnight Violet color palette: #191970, #2F2F4F, #4B0082, #663399, #8A2BE2
Share image for Midnight Violet

Gradients in similar colors