Export

Code

/* Midnight Sapphire — colorset.net */
:root {
  --color-1: #0D1530;
  --color-2: #3F6BE0;
  --color-3: #E8C9A0;
  --color-4: #22305A;
  --color-5: #EEF0F7;

  --color-bg: #EEF0F7;
  --color-surface: #F6F7FC;
  --color-border: #D4D7E2;
  --color-text: #0D1530;
  --color-muted: #5F6981;
  --color-primary: #3F6BE0;
  --color-on-primary: #FFFFFF;
  --color-accent: #A1845D;
  --color-on-accent: #0D1530;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0D1530;
    --color-surface: #17203C;
    --color-border: #2E364C;
    --color-text: #EEF0F7;
    --color-muted: #8A8C92;
    --color-primary: #3F6BE0;
    --color-on-primary: #FFFFFF;
    --color-accent: #E8C9A0;
    --color-on-accent: #0D1530;
  }
}

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
Primaryfrom palette · color 2from palette · color 2
On primaryderivedderived
Accentadjusted for contrast · from #E8C9A0from palette · color 3
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background15.80:1AAA pass 4.5:1
Text on surface16.82:1AAA pass 4.5:1
Muted text on background4.82:1AA pass 4.5:1
Label on primary4.78:1AA pass 4.5:1
Label on accent5.12:1AA pass 4.5:1
Primary on background4.20:1AA Large pass 3:1
Accent on background3.09:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background15.80:1AAA pass 4.5:1
Text on surface14.10:1AAA pass 4.5:1
Muted text on background5.35:1AA pass 4.5:1
Label on primary4.78:1AA pass 4.5:1
Label on accent11.39:1AAA pass 4.5:1
Primary on background3.76:1AA Large pass 3:1
Accent on background11.39: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#0D1530 (Text 1)#3F6BE0 (Text 2)#E8C9A0 (Text 3)#22305A (Text 4)#EEF0F7 (Text 5)
#0D1530Same color3.76AA Large11.39AAA1.40—15.80AAA
#3F6BE03.76AA LargeSame color3.03AA Large2.68—4.20AA Large
#E8C9A011.39AAA3.03AA LargeSame color8.11AAA1.39—
#22305A1.40—2.68—8.11AAASame color11.26AAA
#EEF0F715.80AAA4.20AA Large1.39—11.26AAASame color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#0D1530#3F6BE0#E8C9A0#22305A#EEF0F7

Variations

About Midnight Sapphire

A vivid sapphire set in pale gold on midnight velvet. Midnight Sapphire is a cool blue palette of 5 colors that runs from white #EEF0F7 to deep blue #0D1530. A 169° hue spread puts vivid blue against light orange #E8C9A0, close to a complementary contrast. Lightness runs from 21% to 96% (OKLCH), with #3F6BE0 in between, a wide range that leaves room for readable text and clear backgrounds. Saturation is low (mean OKLCH chroma 0.078, peaking at 0.185 in #3F6BE0); the colors feel soft and muted. As a UI theme it uses #3F6BE0 for primary actions and #A1845D as the accent; dark mode sits on #0D1530 with #EEF0F7 text (15.8:1). Try it for corporate sites, healthcare interfaces and fintech and banking apps, letting vivid blue #3F6BE0 carry the key actions.

Midnight Sapphire color palette: #0D1530, #3F6BE0, #E8C9A0, #22305A, #EEF0F7
Share image for Midnight Sapphire

Gradients in similar colors