Color #38313f
A nearly neutral, gray-leaning dark purple.
Conversions
#38313f
rgb(56, 49, 63)
hsl(270, 12.5%, 22%)
hsv(270, 22.2%, 24.7%)
cmyk(11.1%, 22.2%, 0%, 75.3%)
lab(21.57, 6.4, -7.64)
lch(21.57, 9.97, 309.95)
oklch(32.6%, 0.0261, 307.53)
hwb(270, 19.2%, 75.3%)
Harmony colors
Accessibility
White text reads better on this background (12.51:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#35353c · ΔE 5.8
Deuteranopia
#35363b · ΔE 7.3
Tritanopia
#383939 · ΔE 10.2
Achromatopsia
#343434 · ΔE 9.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #38313f;
bg-[#38313f]
Related colors
Frequently asked questions
#38313f (#38313f) is rgb(56, 49, 63) in RGB.
No, #38313f 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 #38313f, or check how it holds up for accessibility.