Color #2870fa
A vivid, highly saturated medium blue.
Conversions
#2870fa
rgb(40, 112, 250)
hsl(219.4, 95.5%, 56.9%)
hsv(219.4, 84%, 98%)
cmyk(84%, 55.2%, 0%, 2%)
lab(50.62, 28.54, -74.78)
lch(50.62, 80.04, 290.89)
oklch(58.4%, 0.2184, 261.73)
hwb(219.4, 15.7%, 2%)
Harmony colors
Accessibility
Black text reads better on this background (4.79:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#5152e2 · ΔE 11.3
Deuteranopia
#4d47dc · ΔE 14.3
Tritanopia
#2fcdc8 · ΔE 41.5
Achromatopsia
#787878 · ΔE 28.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #2870fa;
bg-[#2870fa]
Related colors
Frequently asked questions
#2870fa (#2870fa) is rgb(40, 112, 250) in RGB.
No, #2870fa 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 #2870fa, or check how it holds up for accessibility.