Color #1f4df2
A vivid, highly saturated medium blue.
Conversions
#1f4df2
rgb(31, 77, 242)
hsl(226.9, 89%, 53.5%)
hsv(226.9, 87.2%, 94.9%)
cmyk(87.2%, 68.2%, 0%, 5.1%)
lab(41.23, 46.91, -85.7)
lch(41.23, 97.7, 298.7)
oklch(51.2%, 0.2494, 265.24)
hwb(226.9, 12.2%, 5.1%)
Harmony colors
Accessibility
White text reads better on this background (6.17:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#3839d9 · ΔE 6.3
Deuteranopia
#3632d2 · ΔE 8.2
Tritanopia
#23c1bc · ΔE 47.5
Achromatopsia
#616161 · ΔE 30.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f4df2;
bg-[#1f4df2]
Related colors
Frequently asked questions
#1f4df2 (#1f4df2) is rgb(31, 77, 242) in RGB.
No, #1f4df2 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 #1f4df2, or check how it holds up for accessibility.