Color #0c2d5e
A vivid, highly saturated dark blue.
Conversions
#0c2d5e
rgb(12, 45, 94)
hsl(215.9, 77.4%, 20.8%)
hsv(215.9, 87.2%, 36.9%)
cmyk(87.2%, 52.1%, 0%, 63.1%)
lab(19.07, 8.76, -32.57)
lch(19.07, 33.73, 285.05)
oklch(30.5%, 0.0955, 258.71)
hwb(215.9, 4.7%, 63.1%)
Harmony colors
Accessibility
White text reads better on this background (13.53:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#1f1f55 · ΔE 7.2
Deuteranopia
#1d1a53 · ΔE 8.5
Tritanopia
#0f4d4b · ΔE 25.4
Achromatopsia
#2e2e2e · ΔE 19.5
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #0c2d5e;
bg-[#0c2d5e]
Related colors
Frequently asked questions
#0c2d5e (#0c2d5e) is rgb(12, 45, 94) in RGB.
No, #0c2d5e 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 #0c2d5e, or check how it holds up for accessibility.