Color #1f182a
A muted very dark purple.
Conversions
#1f182a
rgb(31, 24, 42)
hsl(263.3, 27.3%, 12.9%)
hsv(263.3, 42.9%, 16.5%)
cmyk(26.2%, 42.9%, 0%, 83.5%)
lab(9.89, 8.27, -10.93)
lch(9.89, 13.71, 307.11)
oklch(22.6%, 0.0355, 301.41)
hwb(263.3, 9.4%, 83.5%)
Harmony colors
Accessibility
White text reads better on this background (17.18:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#1c1c26 · ΔE 6.2
Deuteranopia
#1d1d26 · ΔE 6.7
Tritanopia
#1f2323 · ΔE 14.1
Achromatopsia
#1b1b1b · ΔE 12
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f182a;
bg-[#1f182a]
Related colors
Frequently asked questions
#1f182a (#1f182a) is rgb(31, 24, 42) in RGB.
No, #1f182a 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 #1f182a, or check how it holds up for accessibility.