Toolman

#0C4A6E color

#0C4A6E#0C4A6E

The swatch above shows #0C4A6E with its hex code written on it in white and in black, so you can see which of the two is legible before reading the measured ratios below.

#0C4A6E is a dark, vivid blue, closest to the CSS named color darkslategray (#2F4F4F).

It is also a Tailwind CSS default: sky-900. That means you can write bg-sky-900 or text-sky-900 directly, with no arbitrary-value brackets and no entry in your theme config.

Color values

HEX#0C4A6E
RGBrgb(12, 74, 110)
HSLhsl(202, 80%, 24%)
CMYKcmyk(89%, 33%, 0%, 57%)
Decimal805486
CSScolor: #0C4A6E;
Android0xFF0C4A6E
SwiftUIColor(red: 0.047, green: 0.290, blue: 0.431, alpha: 1)

Accessibility and contrast

White text on #0C4A6E9.46:1 — AA pass · AA large pass · AAA pass
Black text on #0C4A6E2.22:1 — AA fail · AA large fail · AAA fail
Recommended text colorwhite

WCAG 2.1 asks for at least 4.5:1 for body text and 3:1 for large text (18 pt, or 14 pt bold).

Tints and shades of #0C4A6E

Each swatch keeps the hue and saturation of #0C4A6E and varies only lightness — the quickest way to build a usable scale from a single brand color.

95%
85%
75%
65%
55%
45%
35%
25%
15%

Colors that go with #0C4A6E

Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.

Complementary
Triadic +120°
Triadic +240°
Analogous −30°
Analogous +30°
Split −150°
Split +150°

Using #0C4A6E in code

/* CSS */
.element { color: #0C4A6E; background-color: #0C4A6E; }
.element { color: rgb(12 74 110); }
.element { color: hsl(202 80% 24%); }

/* Tailwind */
<div class="bg-sky-900 text-white">

/* SCSS variable */
$brand: #0C4A6E;

Frequently asked questions

What color is #0C4A6E?

#0C4A6E is a dark, vivid blue. Its hue sits at 202° on the color wheel, with 80% saturation and 24% lightness.

What is #0C4A6E in RGB?

#0C4A6E converts to rgb(12, 74, 110) — 12 red, 74 green and 110 blue.

What is #0C4A6E in CMYK?

Approximately cmyk(89%, 33%, 0%, 57%). Print output depends on the ICC profile of the press and paper, so treat this as a starting point rather than an exact match.

Should text on #0C4A6E be white or black?

White gives the better contrast ratio (9.46:1 versus 2.22:1).

What is the complementary color of #0C4A6E?

#6E300C — the hue directly opposite #0C4A6E on the color wheel.

Convert any color → · Browse all colors