#0C4A6E color
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 |
| RGB | rgb(12, 74, 110) |
| HSL | hsl(202, 80%, 24%) |
| CMYK | cmyk(89%, 33%, 0%, 57%) |
| Decimal | 805486 |
| CSS | color: #0C4A6E; |
| Android | 0xFF0C4A6E |
| Swift | UIColor(red: 0.047, green: 0.290, blue: 0.431, alpha: 1) |
Accessibility and contrast
| White text on #0C4A6E | 9.46:1 — AA pass · AA large pass · AAA pass |
| Black text on #0C4A6E | 2.22:1 — AA fail · AA large fail · AAA fail |
| Recommended text color | white |
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.
Colors that go with #0C4A6E
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
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.