Skip to main content

#05074A Midnight

The nearest named color to #05074A is Midnight (#1E1B4B).

#05074A

Midnight

What are the RGB, HSL, OKLCH and CMYK values of #05074A?

HEX
#05074A
RGB
rgb(5, 7, 74)
HSL
hsl(238, 87%, 15%)
OKLCH
oklch(20.1% 0.117 268)
CMYK
93, 91, 0, 71

#05074A has a contrast ratio of 18.49:1 against white and 1.14: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.

WCAG contrast ratio for each text and background color combination
Text ↓ / Bg → #05074A
#05074A
Same color
White
18.5AAA
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 #05074A · 18.5:1

Tints and shades of #05074A

Same hue and chroma in OKLCH, lighter to darker.

  1. #F1F5FF
  2. #C4D5FF
  3. #98B4FF
  4. #7A95E1
  5. #5E78C1
  6. #445BA2
  7. #2B4084
  8. #152466
  9. #05074A

Colors that go with #05074A

Six harmony rules built from this color. Open any in the Studio.

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. Indigo, #390870 and Prussian Blue, #063056 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: #05074A; /* Midnight */
}

Palettes, gradients and meshes with #05074A

Items using this color or one perceptually close to it, closest first (up to 24 palettes and 12 each of gradients and meshes).

Palettes (11)

Gradients (1)

Mesh gradients (3)