#0C4A6E — Tints, Shades & Color Values
#0C4A6E is a dark, vivid blue. In Tailwind CSS this exact color is the utility class sky-900 (e.g. bg-sky-900, text-sky-900). Its nearest CSS named color is darkslategray (#2f4f4f). For readable text on a #0C4A6E background, white text gives the strongest contrast (9.46:1). Because it is dark, #0C4A6E suits text, navigation bars, and footers on light backgrounds, and its tints make natural hover and surface colors.
Color Values
| Hex | #0C4A6E |
|---|---|
| RGB | rgb(12, 74, 110) |
| HSL | hsl(202, 80%, 24%) |
| HSV / HSB | 202°, 89%, 43% |
| Nearest named | darkslategray (#2f4f4f) |
Need these in another format? Use our hex to RGB converter for quick two-way conversion.
#0C4A6E in Tailwind CSS (sky-900)
#0C4A6E ships with Tailwind CSS as sky-900 — use it as bg-sky-900, text-sky-900, or border-sky-900. It sits at step 900 of the sky ramp; every other step links to its own page:
Browse the full Tailwind palette in the color library, or generate in-between steps with the tint & shade generator.
Tints of #0C4A6E (Mixed with White)
Each step blends the base color toward white using new = old + (255 − old) × factor. Click a swatch to open it in the generator.
-
10% tint
#245c7d -
20% tint
#3d6e8b -
30% tint
#55809a -
40% tint
#6d92a8 -
50% tint
#86a5b7 -
60% tint
#9eb7c5 -
70% tint
#b6c9d4 -
80% tint
#cedbe2 -
90% tint
#e7edf1
Shades of #0C4A6E (Mixed with Black)
Each step blends the base color toward black using new = old × (1 − factor).
-
10% shade
#0b4363 -
20% shade
#0a3b58 -
30% shade
#08344d -
40% shade
#072c42 -
50% shade
#062537 -
60% shade
#051e2c -
70% shade
#041621 -
80% shade
#020f16 -
90% shade
#01070b
WCAG Contrast & Accessibility
Contrast ratios for text placed on a #0C4A6E background. WCAG requires 4.5:1 for normal text (AA), 3:1 for large text (AA), and 7:1 for normal text (AAA).
| Text color | White text 9.46:1 — AA normal: Pass · AA large: Pass · AAA: Pass |
|---|---|
| Black text 2.22:1 — AA normal: Fail · AA large: Fail · AAA: Fail |
If neither pure white nor pure black reaches the level you need, pick a lighter tint of #0C4A6E from the ramps above as the background instead — small lightness moves change contrast quickly. Test any other pair with the free contrast checker.
More blue colors in the library: #2C3E50, #1E3A5F, #000080, #334155 (slate-700), #374151 (gray-700), #172554 (blue-950).
Frequently Asked Questions
-
What color is #0C4A6E?
#0C4A6E is a dark, vivid blue —
rgb(12, 74, 110). Its nearest CSS named color isdarkslategray. In Tailwind CSS it issky-900. -
How do I make tints and shades of #0C4A6E?
Mix #0C4A6E with white for tints and with black for shades. A 20% tint of #0C4A6E is
#3d6e8band a 20% shade is#0a3b58— the full 10%–90% ramps are precomputed on this page, or open #0C4A6E in the generator for finer steps. -
What text color is readable on #0C4A6E?
White text gives the strongest contrast on a #0C4A6E background at 9.46:1, which passes WCAG AA and AAA for normal text.
-
What is the Tailwind CSS class for #0C4A6E?
sky-900— use it asbg-sky-900,text-sky-900, orborder-sky-900. The full sky 50–950 ramp is linked above.
Browse more colors in the color library, or start from any hex code on the HexTints homepage.
#0C4A6E? Put it on a free link-in-bio page →