Color #1f5aff
A vivid, highly saturated medium blue.
Conversions
#1f5aff
rgb(31, 90, 255)
hsl(224.2, 100%, 56.1%)
hsv(224.2, 87.8%, 100%)
cmyk(87.8%, 64.7%, 0%, 0%)
lab(45.39, 43.62, -86.12)
lch(45.39, 96.54, 296.86)
oklch(54.6%, 0.251, 264.19)
hwb(224.2, 12.2%, 0%)
Harmony colors
Accessibility
White text reads better on this background (5.3:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#4041e5 · ΔE 8.1
Deuteranopia
#3d39de · ΔE 10.2
Tritanopia
#25cdc7 · ΔE 46.7
Achromatopsia
#6b6b6b · ΔE 30.4
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f5aff;
bg-[#1f5aff]
Related colors
Frequently asked questions
#1f5aff (#1f5aff) is rgb(31, 90, 255) in RGB.
No, #1f5aff 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 #1f5aff, or check how it holds up for accessibility.