Color #271a42
A moderately saturated very dark blue.
Conversions
#271a42
rgb(39, 26, 66)
hsl(259.5, 43.5%, 18%)
hsv(259.5, 60.6%, 25.9%)
cmyk(40.9%, 60.6%, 0%, 74.1%)
lab(13.01, 17.24, -23.2)
lch(13.01, 28.9, 306.62)
oklch(25.7%, 0.073, 295.83)
hwb(259.5, 10.2%, 74.1%)
Harmony colors
Accessibility
White text reads better on this background (16:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#22223b · ΔE 6.8
Deuteranopia
#232439 · ΔE 8.7
Tritanopia
#263533 · ΔE 23.7
Achromatopsia
#222222 · ΔE 19.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #271a42;
bg-[#271a42]
Related colors
Frequently asked questions
#271a42 (#271a42) is rgb(39, 26, 66) in RGB.
No, #271a42 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 #271a42, or check how it holds up for accessibility.