#0A0747 Midnight
The nearest named color to #0A0747 is Midnight (#1E1B4B).
#0A0747
Midnight
What are the RGB, HSL, OKLCH and CMYK values of #0A0747?
- HEX
- #0A0747
- RGB
- rgb(10, 7, 71)
- HSL
- hsl(243, 82%, 15%)
- OKLCH
- oklch(20.0% 0.111 272)
- CMYK
- 86, 90, 0, 72
#0A0747 has a contrast ratio of 18.51:1 against white and 1.13: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 → | #0A0747 |
|---|---|
| #0A0747 | 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 #0A0747 · 18.5:1
Tints and shades of #0A0747
Same hue and chroma in OKLCH, lighter to darker.
Colors that go with #0A0747
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. Midnight, #0A0747 and Prussian Blue, #082A54; Indigo, #400B6C and Prussian Blue, #082A54 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: #0A0747; /* Midnight */
}Palettes, gradients and meshes with #0A0747
Items using this color or one perceptually close to it, closest first.