Royal Midnight

Export

Code

/* Royal Midnight — colorset.net */
:root {
  --color-1: #191970;
  --color-2: #2E2E8B;
  --color-3: #4169E1;
  --color-4: #6495ED;
  --color-5: #0F0F5C;

  --color-bg: #F2F7FF;
  --color-surface: #E6EEFB;
  --color-border: #CCD5E6;
  --color-text: #12194A;
  --color-muted: #636B84;
  --color-primary: #4169E1;
  --color-on-primary: #FFFFFF;
  --color-accent: #191970;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0A0E1F;
    --color-surface: #13182A;
    --color-border: #262D42;
    --color-text: #95A7C6;
    --color-muted: #76849C;
    --color-primary: #4169E1;
    --color-on-primary: #FFFFFF;
    --color-accent: #4C5FB1;
    --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 #6495EDadjusted for contrast · from #0F0F5C
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #0F0F5Cadjusted for contrast · from #6495ED
Muted textderivedderived
Primaryfrom palette · color 3from palette · color 3
On primaryderivedderived
Accentfrom palette · color 1adjusted for contrast · from #4169E1
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background15.45:1AAA pass 4.5:1
Text on surface14.23:1AAA pass 4.5:1
Muted text on background4.92:1AA pass 4.5:1
Label on primary4.85:1AA pass 4.5:1
Label on accent14.85:1AAA pass 4.5:1
Primary on background4.51:1AA pass 3:1
Accent on background13.80:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.87:1AAA pass 4.5:1
Text on surface7.23:1AAA pass 4.5:1
Muted text on background5.07:1AA pass 4.5:1
Label on primary4.85:1AA pass 4.5:1
Label on accent5.87:1AA pass 4.5:1
Primary on background3.95:1AA Large pass 3:1
Accent on background3.27: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)#2E2E8B (Text 2)#4169E1 (Text 3)#6495ED (Text 4)#0F0F5C (Text 5)
#191970Same color1.33—3.06AA Large4.99AA1.14—
#2E2E8B1.33—Same color2.30—3.76AA Large1.51—
#4169E13.06AA Large2.30—Same color1.63—3.49AA Large
#6495ED4.99AA3.76AA Large1.63—Same color5.68AA
#0F0F5C1.14—1.51—3.49AA Large5.68AASame color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#191970#2E2E8B#4169E1#6495ED#0F0F5C

Variations

About Royal Midnight

Nearly all of the color weight in Royal Midnight sits in blue, which makes it a cool palette anchored by dark blue #2E2E8B. With a hue spread of just 15°, it is effectively monochromatic: #191970, #2E2E8B and #4169E1 differ mostly in lightness. Lightness spans 24% (#0F0F5C) to 67% (#6495ED), a moderate range; text roles may need slight darkening for full contrast. Saturation is medium (mean OKLCH chroma 0.151, peaking at 0.188 in #4169E1); the colors are clear without being loud. As a UI theme it uses #4169E1 for primary actions and #191970 as the accent; dark mode sits on #0A0E1F with #95A7C6 text (7.9:1). Its monochrome character, led by #4169E1, suits minimal branding, focused single-product sites and typography-led layouts.

Royal Midnight color palette: #191970, #2E2E8B, #4169E1, #6495ED, #0F0F5C
Share image for Royal Midnight

Gradients in similar colors