Color #2f4170
A moderately saturated dark blue.
Conversions
#2f4170
rgb(47, 65, 112)
hsl(223.4, 40.9%, 31.2%)
hsv(223.4, 58%, 43.9%)
cmyk(58%, 42%, 0%, 56.1%)
lab(28.26, 8.16, -29.41)
lch(28.26, 30.52, 285.51)
oklch(38.4%, 0.0835, 266.71)
hwb(223.4, 18.4%, 56.1%)
Harmony colors
Accessibility
White text reads better on this background (9.95:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#383867 · ΔE 5.3
Deuteranopia
#373565 · ΔE 6.1
Tritanopia
#305f5d · ΔE 24.5
Achromatopsia
#434343 · ΔE 18.5
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #2f4170;
bg-[#2f4170]
Related colors
Frequently asked questions
#2f4170 (#2f4170) is rgb(47, 65, 112) in RGB.
No, #2f4170 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 #2f4170, or check how it holds up for accessibility.