Export

Code

/* Midnight Drive — colorset.net */
:root {
  --color-1: #0F1630;
  --color-2: #FF9F1C;
  --color-3: #F72585;
  --color-4: #2C3560;
  --color-5: #F2EEF8;

  --color-bg: #F2EEF8;
  --color-surface: #F9F6FC;
  --color-border: #DAD5E2;
  --color-text: #0F1630;
  --color-muted: #616981;
  --color-primary: #E30076;
  --color-on-primary: #FFFFFF;
  --color-accent: #C67800;
  --color-on-accent: #0F1630;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0F1630;
    --color-surface: #19213C;
    --color-border: #30374D;
    --color-text: #F2EEF8;
    --color-muted: #8E8B94;
    --color-primary: #E30076;
    --color-on-primary: #FFFFFF;
    --color-accent: #FF9F1C;
    --color-on-accent: #0F1630;
  }
}

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
Backgroundfrom palette · color 5from palette · color 1
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 1from palette · color 5
Muted textderivedderived
Primaryadjusted for contrast · from #F72585adjusted for contrast · from #F72585
On primaryderivedderived
Accentadjusted for contrast · from #FF9F1Cfrom palette · color 2
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background15.59:1AAA pass 4.5:1
Text on surface16.66:1AAA pass 4.5:1
Muted text on background4.77:1AA pass 4.5:1
Label on primary4.64:1AA pass 4.5:1
Label on accent5.17:1AA pass 4.5:1
Primary on background4.06:1AA Large pass 3:1
Accent on background3.02:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background15.59:1AAA pass 4.5:1
Text on surface13.87:1AAA pass 4.5:1
Muted text on background5.32:1AA pass 4.5:1
Label on primary4.64:1AA pass 4.5:1
Label on accent8.68:1AAA pass 4.5:1
Primary on background3.84:1AA Large pass 3:1
Accent on background8.68: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#0F1630 (Text 1)#FF9F1C (Text 2)#F72585 (Text 3)#2C3560 (Text 4)#F2EEF8 (Text 5)
#0F1630Same color8.68AAA4.72AA1.52—15.59AAA
#FF9F1C8.68AAASame color1.84—5.73AA1.80—
#F725854.72AA1.84—Same color3.11AA Large3.30AA Large
#2C35601.52—5.73AA3.11AA LargeSame color10.28AAA
#F2EEF815.59AAA1.80—3.30AA Large10.28AAASame color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#0F1630#FF9F1C#F72585#2C3560#F2EEF8

Variations

About Midnight Drive

Highway amber and taillight pink on a deep blue night drive. No single hue dominates Midnight Drive: pink carries about 33% of the color weight, shared with blue and orange, and vivid pink #F72585 sits in the middle of the range. A 156° hue spread puts deep blue against light orange #FF9F1C, close to a complementary contrast. Lightness runs from 21% to 96% (OKLCH), with #F72585 in between, a wide range that leaves room for readable text and clear backgrounds. Saturation is medium (mean OKLCH chroma 0.111, peaking at 0.244 in #F72585); the colors are clear without being loud. In light mode #F2EEF8 becomes the background with #0F1630 text at 15.6:1, and #E30076 takes the primary role. With #F72585 leading, good fits include data visualization, brand systems with many sub-brands and accessible interfaces.

Midnight Drive color palette: #0F1630, #FF9F1C, #F72585, #2C3560, #F2EEF8
Share image for Midnight Drive

Gradients in similar colors