Midnight Blue

Export

Code

/* Midnight Blue — colorset.net */
:root {
  --color-1: #001F3F;
  --color-2: #003366;
  --color-3: #004080;
  --color-4: #0066CC;
  --color-5: #3399FF;

  --color-bg: #F1F8FF;
  --color-surface: #E4EFFB;
  --color-border: #CAD6E5;
  --color-text: #001F3F;
  --color-muted: #5B6D82;
  --color-primary: #0066CC;
  --color-on-primary: #FFFFFF;
  --color-accent: #003366;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #06101B;
    --color-surface: #101A26;
    --color-border: #212F3E;
    --color-text: #90A9C5;
    --color-muted: #708399;
    --color-primary: #0066CC;
    --color-on-primary: #FFFFFF;
    --color-accent: #47688D;
    --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 #3399FFadjusted for contrast · from #001F3F
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 1adjusted for contrast · from #3399FF
Muted textderivedderived
Primaryfrom palette · color 4from palette · color 4
On primaryderivedderived
Accentfrom palette · color 2adjusted for contrast · from #0066CC
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background15.47:1AAA pass 4.5:1
Text on surface14.23:1AAA pass 4.5:1
Muted text on background4.96:1AA pass 4.5:1
Label on primary5.57:1AA pass 4.5:1
Label on accent12.61:1AAA pass 4.5:1
Primary on background5.20:1AA pass 3:1
Accent on background11.78:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.90:1AAA pass 4.5:1
Text on surface7.24:1AAA pass 4.5:1
Muted text on background4.92:1AA pass 4.5:1
Label on primary5.57:1AA pass 4.5:1
Label on accent5.78:1AA pass 4.5:1
Primary on background3.44:1AA Large pass 3:1
Accent on background3.31: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#001F3F (Text 1)#003366 (Text 2)#004080 (Text 3)#0066CC (Text 4)#3399FF (Text 5)
#001F3FSame color1.31—1.61—2.98—5.63AA
#0033661.31—Same color1.23—2.27—4.29AA Large
#0040801.61—1.23—Same color1.84—3.49AA Large
#0066CC2.98—2.27—1.84—Same color1.89—
#3399FF5.63AA4.29AA Large3.49AA Large1.89—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#001F3F#003366#004080#0066CC#3399FF

Variations

About Midnight Blue

Nearly all of the color weight in Midnight Blue sits in blue, which makes it a cool palette anchored by dark blue #004080. With a hue spread of just 4°, it is effectively monochromatic: #001F3F, #003366 and #004080 differ mostly in lightness. Lightness spans 24% (#001F3F) to 68% (#3399FF), a moderate range; text roles may need slight darkening for full contrast. Saturation is medium (mean OKLCH chroma 0.130, peaking at 0.177 in #0066CC); the colors are clear without being loud. Text contrast reaches 15.5:1 in light mode and 7.9:1 in dark mode, with #0066CC as primary and #003366 as accent. Try it for minimal branding, focused single-product sites and typography-led layouts, letting vivid blue #0066CC carry the key actions.

Midnight Blue color palette: #001F3F, #003366, #004080, #0066CC, #3399FF
Share image for Midnight Blue

Gradients in similar colors