Color #271b46
A moderately saturated very dark blue.
Conversions
#271b46
rgb(39, 27, 70)
hsl(256.7, 44.3%, 19%)
hsv(256.7, 61.4%, 27.5%)
cmyk(44.3%, 61.4%, 0%, 72.5%)
lab(13.58, 17.85, -25.07)
lch(13.58, 30.78, 305.45)
oklch(26.2%, 0.0775, 293.19)
hwb(256.7, 10.6%, 72.5%)
Harmony colors
Accessibility
White text reads better on this background (15.77:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#22223f · ΔE 5.7
Deuteranopia
#23243d · ΔE 7.4
Tritanopia
#263836 · ΔE 24.4
Achromatopsia
#232323 · ΔE 19.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #271b46;
bg-[#271b46]
Related colors
Frequently asked questions
#271b46 (#271b46) is rgb(39, 27, 70) in RGB.
No, #271b46 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 #271b46, or check how it holds up for accessibility.