Color #0042bc
A vivid, highly saturated dark blue.
Conversions
#0042bc
rgb(0, 66, 188)
hsl(218.9, 100%, 36.9%)
hsv(218.9, 100%, 73.7%)
cmyk(100%, 64.9%, 0%, 26.3%)
lab(32.98, 32.73, -68.24)
lch(32.98, 75.68, 295.62)
oklch(43.4%, 0.2, 261.95)
hwb(218.9, 0%, 26.3%)
Harmony colors
Accessibility
White text reads better on this background (8.38:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2a2ba9 · ΔE 7.5
Deuteranopia
#2722a3 · ΔE 9.6
Tritanopia
#099793 · ΔE 41.5
Achromatopsia
#4e4e4e · ΔE 28
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #0042bc;
bg-[#0042bc]
Related colors
Frequently asked questions
#0042bc (#0042bc) is rgb(0, 66, 188) in RGB.
No, #0042bc 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 #0042bc, or check how it holds up for accessibility.