#1E1B4B Midnight
#1E1B4B is Midnight.
#1E1B4B
Midnight
What are the RGB, HSL, OKLCH and CMYK values of #1E1B4B?
- HEX
- #1E1B4B
- RGB
- rgb(30, 27, 75)
- HSL
- hsl(244, 47%, 20%)
- OKLCH
- oklch(25.7% 0.086 281)
- CMYK
- 60, 64, 0, 71
#1E1B4B has a contrast ratio of 15.99:1 against white and 1.31:1 against black, so white is the better background for text in this color and light text reads best on it.
Contrast checker
Text color (rows) on background (columns), scored against WCAG 2.2. White and near-black text on this color.
| Text ↓ / Bg → | #1E1B4B |
|---|---|
| #1E1B4B | Same color |
| White | 16.0AAA |
| Near-black | 1.1Fail |
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 #1E1B4B · 16.0:1
Tints and shades of #1E1B4B
Same hue and chroma in OKLCH, lighter to darker.
Colors that go with #1E1B4B
Six harmony rules built from this color. Open any in the Studio.
- AnalogousNeighboring hues. Calm and cohesive, with little tension.
- ComplementaryOpposite hues. Maximum contrast — strong for accents.
- SplitA hue plus the two neighbors of its opposite. Contrast without the clash.
- TriadicThree evenly spaced hues. Vivid and balanced.
- TetradicFour hues in two complementary pairs. Rich, and easy to overuse.
- MonoOne hue across a range of lightness. Always harmonious.
Color blindness check
About 1 in 12 men and 1 in 200 women see color differently. Simulated with the Machado (2009) model.
No green cones — the most common form. Twilight Purple, #4C2669 and Navy Blue, #182B43; Twilight Purple, #4C2669 and Deep Teal, #184143 become hard to tell apart — don't rely on color alone to separate them.
Export
Copy-paste code, or download the swatches.
:root {
--midnight-1: #1E1B4B; /* Midnight */
}Palettes, gradients and meshes with #1E1B4B
Items using this color or one perceptually close to it, closest first.
Palettes (43)
- Indigo Denim
- Glacier Ledger
- Moonlit Orchid
- Imperial Violet
- Aubergine Night
- Violet Family
- Tangerine Tram
- Deep Sea Data
- Ultraviolet Pop
- Alpine Lake
- Royal Navy Crest
- Night Shift
- Cobalt Pottery
- Brunch Club
- Turquoise Tile
- Rain City Neon
- Peppermint Bark
- Harbor Fog
- Steel Harbour
- Sorbet Stand
- Thistle Moor
- Velvet Cinema
- Slate Studio
- Mauve Gallery
- Tropical Punch
- Signal Red Ops
- Wisteria Arch
- Plum Orchard
- Marigold Festival
- Tidepool
- Nordic Morning
- Polar Night
- Brass & Ink
- Porcelain Blue
- Sunset Boulevard