Color #05186c
A vivid, highly saturated dark blue.
Conversions
#05186c
rgb(5, 24, 108)
hsl(228.9, 91.2%, 22.2%)
hsv(228.9, 95.4%, 42.4%)
cmyk(95.4%, 77.8%, 0%, 57.6%)
lab(14.22, 29.41, -49.71)
lch(14.22, 57.76, 300.61)
oklch(27.2%, 0.1447, 265.24)
hwb(228.9, 2%, 57.6%)
Harmony colors
Accessibility
White text reads better on this background (15.51:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#0f0f60 · ΔE 3
Deuteranopia
#0e0c5c · ΔE 3.8
Tritanopia
#065451 · ΔE 33
Achromatopsia
#242424 · ΔE 25.3
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #05186c;
bg-[#05186c]
Related colors
Frequently asked questions
#05186c (#05186c) is rgb(5, 24, 108) in RGB.
No, #05186c 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 #05186c, or check how it holds up for accessibility.