Color #1f51ad
A moderately saturated medium blue.
Conversions
#1f51ad
rgb(31, 81, 173)
hsl(218.9, 69.6%, 40%)
hsv(218.9, 82.1%, 67.8%)
cmyk(82.1%, 53.2%, 0%, 32.2%)
lab(36.35, 18.36, -53.83)
lch(36.35, 56.87, 288.83)
oklch(45.8%, 0.157, 261.28)
hwb(218.9, 12.2%, 32.2%)
Harmony colors
Accessibility
White text reads better on this background (7.4:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#3b3b9d · ΔE 9.1
Deuteranopia
#383499 · ΔE 10.9
Tritanopia
#238e8b · ΔE 34.7
Achromatopsia
#555555 · ΔE 25
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f51ad;
bg-[#1f51ad]
Related colors
Frequently asked questions
#1f51ad (#1f51ad) is rgb(31, 81, 173) in RGB.
No, #1f51ad 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 #1f51ad, or check how it holds up for accessibility.