Color #0c4fa7
A vivid, highly saturated dark blue.
Conversions
#0c4fa7
rgb(12, 79, 167)
hsl(214.1, 86.6%, 35.1%)
hsv(214.1, 92.8%, 65.5%)
cmyk(92.8%, 52.7%, 0%, 34.5%)
lab(34.92, 15.93, -52.6)
lch(34.92, 54.96, 286.85)
oklch(44.4%, 0.1551, 258.1)
hwb(214.1, 4.7%, 34.5%)
Harmony colors
Accessibility
White text reads better on this background (7.8:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#353698 · ΔE 10.5
Deuteranopia
#322d94 · ΔE 12.7
Tritanopia
#158a86 · ΔE 34.3
Achromatopsia
#525252 · ΔE 24.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #0c4fa7;
bg-[#0c4fa7]
Related colors
Frequently asked questions
#0c4fa7 (#0c4fa7) is rgb(12, 79, 167) in RGB.
No, #0c4fa7 is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.
Related tools
HEX to RGB Converter
Convert any HEX color code to its RGB and HSL equivalents, live, with copy-to-clipboard values.
Try it → AccessibilityContrast Checker
Check the WCAG contrast ratio between any two colors, live, with AA/AAA pass-fail results.
Try it → GeneratorsPalette Generator
Generate complementary, analogous, triadic, split-complementary, tetradic, square, and monochromatic palettes from any base color.
Try it →Build something with this color
Generate a full palette from #0c4fa7, or check how it holds up for accessibility.