Color #1f4898
A moderately saturated dark blue.
Conversions
#1f4898
rgb(31, 72, 152)
hsl(219.7, 66.1%, 35.9%)
hsv(219.7, 79.6%, 59.6%)
cmyk(79.6%, 52.6%, 0%, 40.4%)
lab(32.24, 16.08, -47.88)
lch(32.24, 50.51, 288.56)
oklch(42.1%, 0.1393, 261.95)
hwb(219.7, 12.2%, 40.4%)
Harmony colors
Accessibility
White text reads better on this background (8.61:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#35368a · ΔE 7.9
Deuteranopia
#333086 · ΔE 9.5
Tritanopia
#227d7a · ΔE 32
Achromatopsia
#4c4c4c · ΔE 23.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f4898;
bg-[#1f4898]
Related colors
Frequently asked questions
#1f4898 (#1f4898) is rgb(31, 72, 152) in RGB.
No, #1f4898 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 #1f4898, or check how it holds up for accessibility.