Color #0c2a88
A vivid, highly saturated dark blue.
Conversions
#0c2a88
rgb(12, 42, 136)
hsl(225.5, 83.8%, 29%)
hsv(225.5, 91.2%, 53.3%)
cmyk(91.2%, 69.1%, 0%, 46.7%)
lab(21.98, 28.75, -54.78)
lch(21.98, 61.87, 297.69)
oklch(33.9%, 0.1596, 264.75)
hwb(225.5, 4.7%, 46.7%)
Harmony colors
Accessibility
White text reads better on this background (12.34:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#1d1d79 · ΔE 4.5
Deuteranopia
#1b1975 · ΔE 5.6
Tritanopia
#0f6c69 · ΔE 35.1
Achromatopsia
#353535 · ΔE 26
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #0c2a88;
bg-[#0c2a88]
Related colors
Frequently asked questions
#0c2a88 (#0c2a88) is rgb(12, 42, 136) in RGB.
No, #0c2a88 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 #0c2a88, or check how it holds up for accessibility.