Color #51516c
A nearly neutral, gray-leaning dark blue.
Conversions
#51516c
rgb(81, 81, 108)
hsl(240, 14.3%, 37.1%)
hsv(240, 25%, 42.4%)
cmyk(25%, 25%, 0%, 57.6%)
lab(35.43, 6.56, -15.5)
lch(35.43, 16.83, 292.94)
oklch(44.6%, 0.044, 284.48)
hwb(240, 31.8%, 57.6%)
Harmony colors
Accessibility
White text reads better on this background (7.65:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#515166 · ΔE 2.4
Deuteranopia
#515165 · ΔE 2.8
Tritanopia
#516160 · ΔE 17.8
Achromatopsia
#535353 · ΔE 13
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #51516c;
bg-[#51516c]
Related colors
Frequently asked questions
#51516c (#51516c) is rgb(81, 81, 108) in RGB.
No, #51516c 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 #51516c, or check how it holds up for accessibility.