Color #2a1787
A vivid, highly saturated dark blue.
Conversions
#2a1787
rgb(42, 23, 135)
hsl(250.2, 70.9%, 31%)
hsv(250.2, 83%, 52.9%)
cmyk(68.9%, 83%, 0%, 47.1%)
lab(19.45, 42.15, -58.29)
lch(19.45, 71.93, 305.87)
oklch(32.5%, 0.1703, 278.82)
hwb(250.2, 9%, 47.1%)
Harmony colors
Accessibility
White text reads better on this background (13.37:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#232377 · ΔE 4.5
Deuteranopia
#242573 · ΔE 5.6
Tritanopia
#296965 · ΔE 36.1
Achromatopsia
#2f2f2f · ΔE 27.5
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #2a1787;
bg-[#2a1787]
Related colors
Frequently asked questions
#2a1787 (#2a1787) is rgb(42, 23, 135) in RGB.
No, #2a1787 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 #2a1787, or check how it holds up for accessibility.