Color #2e1f4f
A moderately saturated dark blue.
Conversions
#2e1f4f
rgb(46, 31, 79)
hsl(258.8, 43.6%, 21.6%)
hsv(258.8, 60.8%, 31%)
cmyk(41.8%, 60.8%, 0%, 69%)
lab(16.13, 20, -27.12)
lch(16.13, 33.7, 306.41)
oklch(28.5%, 0.0848, 294.9)
hwb(258.8, 12.2%, 69%)
Harmony colors
Accessibility
White text reads better on this background (14.74:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#282847 · ΔE 6.4
Deuteranopia
#292a45 · ΔE 7.9
Tritanopia
#2d3f3e · ΔE 23.9
Achromatopsia
#282828 · ΔE 20.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #2e1f4f;
bg-[#2e1f4f]
Related colors
Frequently asked questions
#2e1f4f (#2e1f4f) is rgb(46, 31, 79) in RGB.
No, #2e1f4f is not web-safe. The nearest web-safe colors are among its tones and shades below.
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 #2e1f4f, or check how it holds up for accessibility.