Color #281a41
A moderately saturated very dark purple.
Conversions
#281a41
rgb(40, 26, 65)
hsl(261.5, 42.9%, 17.8%)
hsv(261.5, 60%, 25.5%)
cmyk(38.5%, 60%, 0%, 74.5%)
lab(13.06, 17.22, -22.41)
lch(13.06, 28.26, 307.54)
oklch(25.8%, 0.0715, 297.75)
hwb(261.5, 10.2%, 74.5%)
Harmony colors
Accessibility
White text reads better on this background (15.98:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#23233a · ΔE 7.6
Deuteranopia
#232438 · ΔE 9.1
Tritanopia
#273433 · ΔE 22.7
Achromatopsia
#222222 · ΔE 19
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #281a41;
bg-[#281a41]
Related colors
Frequently asked questions
#281a41 (#281a41) is rgb(40, 26, 65) in RGB.
No, #281a41 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 #281a41, or check how it holds up for accessibility.