Color #271f48
A muted dark blue.
Conversions
#271f48
rgb(39, 31, 72)
hsl(251.7, 39.8%, 20.2%)
hsv(251.7, 56.9%, 28.2%)
cmyk(45.8%, 56.9%, 0%, 71.8%)
lab(14.84, 15.69, -24.43)
lch(14.84, 29.03, 302.71)
oklch(27.2%, 0.0735, 289.54)
hwb(251.7, 12.2%, 71.8%)
Harmony colors
Accessibility
White text reads better on this background (15.26:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#242441 · ΔE 4.7
Deuteranopia
#24253f · ΔE 5.9
Tritanopia
#273a39 · ΔE 23.6
Achromatopsia
#252525 · ΔE 19
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #271f48;
bg-[#271f48]
Related colors
Frequently asked questions
#271f48 (#271f48) is rgb(39, 31, 72) in RGB.
No, #271f48 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 #271f48, or check how it holds up for accessibility.