Color #2f3f71
A moderately saturated dark blue.
Conversions
#2f3f71
rgb(47, 63, 113)
hsl(225.5, 41.3%, 31.4%)
hsv(225.5, 58.4%, 44.3%)
cmyk(58.4%, 44.2%, 0%, 55.7%)
lab(27.71, 9.89, -30.92)
lch(27.71, 32.46, 287.74)
oklch(38%, 0.0878, 268.63)
hwb(225.5, 18.4%, 55.7%)
Harmony colors
Accessibility
White text reads better on this background (10.14:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#373768 · ΔE 4.6
Deuteranopia
#363465 · ΔE 5.5
Tritanopia
#305f5d · ΔE 25.2
Achromatopsia
#414141 · ΔE 19.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #2f3f71;
bg-[#2f3f71]
Related colors
Frequently asked questions
#2f3f71 (#2f3f71) is rgb(47, 63, 113) in RGB.
No, #2f3f71 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 #2f3f71, or check how it holds up for accessibility.