Skip to main content

Midnight Indigo

2-color CSS gradient

Open in Studio Visualize

Midnight Indigo is a 2-color CSS linear gradient built from #141E30 and #243B55. Its hues sit in the blue range, and reads as neutral, dark, muted, and cool. White text on it keeps at least 11.46:1 at its weakest point — enough for WCAG AAA body text.

180°
Stops

UI Preview

See how this gradient looks in a real interface

🎨

Welcome Back

Your creative workspace awaits

Continue

Shade scales

Each color as a 50–950 ramp, like Tailwind's built-in palettes — ready for a design system. The ringed step is closest to the original color.

#141E30

#243B55

@theme {
  --color-midnight-indigo-1-50: #F6F7FB;
  --color-midnight-indigo-1-100: #E8ECF3;
  --color-midnight-indigo-1-200: #D4DBE7;
  --color-midnight-indigo-1-300: #B9C4D6;
  --color-midnight-indigo-1-400: #98A5BC;
  --color-midnight-indigo-1-500: #7D8BA4;
  --color-midnight-indigo-1-600: #67748A;
  --color-midnight-indigo-1-700: #515D70;
  --color-midnight-indigo-1-800: #40495A;
  --color-midnight-indigo-1-900: #323947;
  --color-midnight-indigo-1-950: #1F242E;
}

@theme {
  --color-midnight-indigo-2-50: #F4F8FC;
  --color-midnight-indigo-2-100: #E6EDF5;
  --color-midnight-indigo-2-200: #D0DCEB;
  --color-midnight-indigo-2-300: #B2C5DC;
  --color-midnight-indigo-2-400: #8FA7C3;
  --color-midnight-indigo-2-500: #738DAB;
  --color-midnight-indigo-2-600: #5D7591;
  --color-midnight-indigo-2-700: #495E77;
  --color-midnight-indigo-2-800: #394B5F;
  --color-midnight-indigo-2-900: #2C3B4B;
  --color-midnight-indigo-2-950: #1A2531;
}

Light & dark theme

This palette as semantic tokens for a real interface, in both modes. Text, muted text and button labels are adjusted until they pass WCAG AA.

Light

Weekly summary

Everything your team shipped since Monday.

Open reportNewDetails

Dark

Weekly summary

Everything your team shipped since Monday.

Open reportNewDetails
:root {
  --background: #F9FAFD;
  --surface: #F1F3F8;
  --text: #181B20;
  --muted: #5F636A;
  --border: #DADEE5;
  --primary: #243B55;
  --primary-foreground: #FAFAF9;
  --accent: #546D8A;
  --accent-foreground: #FAFAF9;
}

.dark {
  --background: #0D0F14;
  --surface: #161A1F;
  --text: #EAEFF7;
  --muted: #A0A5AC;
  --border: #303338;
  --primary: #819BB9;
  --primary-foreground: #1C1917;
  --accent: #87A1C0;
  --accent-foreground: #1C1917;
}

Contrast checker

Text color (rows) on background (columns), scored against WCAG 2.1. 0 of 2 palette combinations are readable as body text. White and near-black text are included for comparison.

WCAG contrast ratio for each text and background color combination
Text ↓ / Bg → #141E30#243B55
#141E30
Same color
1.5Fail
#243B55
1.5Fail
Same color
White
16.7AAA
11.5AAA
Near-black
1.0Fail
1.5Fail

AAA ≥ 7:1 · AA ≥ 4.5:1 body text· AA18 ≥ 3:1 large text (18pt, or 14pt bold) only

Text that works on each color

  • White on #141E30 · 16.7:1
  • White on #243B55 · 11.5:1
Suggested fixes for 2 failing pairs

The nearest shade of the text color that passes AA (4.5:1), keeping its hue. Click one to copy it.

Color blindness check

About 1 in 12 men and 1 in 200 women see color differently. Simulated with the Machado (2009) model.

Typical
Deuteranopia

No green cones — the most common form. No two swatches become hard to tell apart here.

What are the HEX, RGB, and HSL values for Midnight Indigo?

Every color in this 2-color set, with its contrast ratio against white and black.

Color values for Midnight Indigo: hex, RGB, HSL, and WCAG contrast ratios against white and black.
ColorNameHEXRGBHSLOn whiteOn black
#141E30Dark Navy#141E3020, 30, 48219°, 41%, 13%16.69:11.26:1
#243B55Charcoal Blue#243B5536, 59, 85212°, 40%, 24%11.46:11.83:1