Skip to main content

#0C4A6E Charcoal Blue

The nearest named color to #0C4A6E is Charcoal Blue (#334155).

#0C4A6E

Charcoal Blue

What are the RGB, HSL, OKLCH and CMYK values of #0C4A6E?

HEX
#0C4A6E
RGB
rgb(12, 74, 110)
HSL
hsl(202, 80%, 24%)
OKLCH
oklch(39.1% 0.085 241)
CMYK
89, 33, 0, 57

#0C4A6E has a contrast ratio of 9.46:1 against white and 2.22: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 → #0C4A6E
#0C4A6E
Same color
White
9.5AAA
Near-black
1.8Fail

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 #0C4A6E · 9.5:1

Tints and shades of #0C4A6E

Same hue and chroma in OKLCH, lighter to darker.

  1. #ECF7FF
  2. #ADDCFF
  3. #85BEE8
  4. #67A0C8
  5. #4A82A9
  6. #2D668B
  7. #0C4A6E
  8. #00304C
  9. #001829

Colors that go with #0C4A6E

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. Klein Blue, #102193 and Grape, #5014B8 become hard to tell apart — don't rely on color alone to separate them.

Export

Copy-paste code, or download the swatches.

:root {
  --charcoal-blue-1: #0C4A6E; /* Charcoal Blue */
}

Palettes, gradients and meshes with #0C4A6E

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