Color #0040fc
A vivid, highly saturated medium blue.
Conversions
#0040fc
rgb(0, 64, 252)
hsl(224.8, 100%, 49.4%)
hsv(224.8, 100%, 98.8%)
cmyk(100%, 74.6%, 0%, 1.2%)
lab(39.06, 57.06, -94.91)
lch(39.06, 110.74, 301.01)
oklch(49.8%, 0.277, 263.78)
hwb(224.8, 0%, 1.2%)
Harmony colors
Accessibility
White text reads better on this background (6.69:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#292ae1 · ΔE 6.1
Deuteranopia
#2621d9 · ΔE 8.1
Tritanopia
#08c7c1 · ΔE 51.2
Achromatopsia
#5c5c5c · ΔE 31.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #0040fc;
bg-[#0040fc]
Related colors
Frequently asked questions
#0040fc (#0040fc) is rgb(0, 64, 252) in RGB.
No, #0040fc 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 #0040fc, or check how it holds up for accessibility.