Color #2870e2
A vivid, highly saturated medium blue.
Conversions
#2870e2
rgb(40, 112, 226)
hsl(216.8, 76.2%, 52.2%)
hsv(216.8, 82.3%, 88.6%)
cmyk(82.3%, 50.4%, 0%, 11.4%)
lab(48.92, 19.5, -64.11)
lch(48.92, 67.01, 286.92)
oklch(56.6%, 0.1878, 259.63)
hwb(216.8, 15.7%, 11.4%)
Harmony colors
Accessibility
White text reads better on this background (4.66:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#5152ce · ΔE 12.3
Deuteranopia
#4d47c9 · ΔE 15.3
Tritanopia
#2fbcb7 · ΔE 38
Achromatopsia
#747474 · ΔE 26.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #2870e2;
bg-[#2870e2]
Related colors
Frequently asked questions
#2870e2 (#2870e2) is rgb(40, 112, 226) in RGB.
No, #2870e2 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 #2870e2, or check how it holds up for accessibility.