Color #271a41
A moderately saturated very dark purple.
Conversions
#271a41
rgb(39, 26, 65)
hsl(260, 42.9%, 17.8%)
hsv(260, 60%, 25.5%)
cmyk(40%, 60%, 0%, 74.5%)
lab(12.93, 16.91, -22.61)
lch(12.93, 28.23, 306.79)
oklch(25.6%, 0.0714, 296.35)
hwb(260, 10.2%, 74.5%)
Harmony colors
Accessibility
White text reads better on this background (16.03:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#22223a · ΔE 7
Deuteranopia
#232438 · ΔE 8.9
Tritanopia
#263433 · ΔE 22.9
Achromatopsia
#212121 · ΔE 19
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #271a41;
bg-[#271a41]
Related colors
Frequently asked questions
#271a41 (#271a41) is rgb(39, 26, 65) in RGB.
No, #271a41 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 #271a41, or check how it holds up for accessibility.