Color #291f54
A moderately saturated dark blue.
Conversions
#291f54
rgb(41, 31, 84)
hsl(251.3, 46.1%, 22.5%)
hsv(251.3, 63.1%, 32.9%)
cmyk(51.2%, 63.1%, 0%, 67.1%)
lab(15.96, 20.33, -30.81)
lch(15.96, 36.91, 303.42)
oklch(28.4%, 0.0924, 287.71)
hwb(251.3, 12.2%, 67.1%)
Harmony colors
Accessibility
White text reads better on this background (14.81:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#25254b · ΔE 4.5
Deuteranopia
#262649 · ΔE 5.4
Tritanopia
#294341 · ΔE 25.7
Achromatopsia
#282828 · ΔE 21.3
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #291f54;
bg-[#291f54]
Related colors
Frequently asked questions
#291f54 (#291f54) is rgb(41, 31, 84) in RGB.
No, #291f54 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 #291f54, or check how it holds up for accessibility.