Color #271e52
A moderately saturated dark blue.
Conversions
#271e52
rgb(39, 30, 82)
hsl(250.4, 46.4%, 22%)
hsv(250.4, 63.4%, 32.2%)
cmyk(52.4%, 63.4%, 0%, 67.8%)
lab(15.32, 19.84, -30.5)
lch(15.32, 36.39, 303.04)
oklch(27.8%, 0.091, 286.86)
hwb(250.4, 11.8%, 67.8%)
Harmony colors
Accessibility
White text reads better on this background (15.07:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#232349 · ΔE 4.2
Deuteranopia
#242547 · ΔE 5.5
Tritanopia
#27413f · ΔE 25.7
Achromatopsia
#262626 · ΔE 21.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #271e52;
bg-[#271e52]
Related colors
Frequently asked questions
#271e52 (#271e52) is rgb(39, 30, 82) in RGB.
No, #271e52 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 #271e52, or check how it holds up for accessibility.