Color #1f2840
A muted very dark blue.
Conversions
#1f2840
rgb(31, 40, 64)
hsl(223.6, 34.7%, 18.6%)
hsv(223.6, 51.6%, 25.1%)
cmyk(51.6%, 37.5%, 0%, 74.9%)
lab(16.4, 3.89, -16.48)
lch(16.4, 16.93, 283.28)
oklch(28.1%, 0.0462, 267.77)
hwb(223.6, 12.2%, 74.9%)
Harmony colors
Accessibility
White text reads better on this background (14.63:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#23233b · ΔE 4.1
Deuteranopia
#23223a · ΔE 4.6
Tritanopia
#203736 · ΔE 17.6
Achromatopsia
#292929 · ΔE 12.5
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f2840;
bg-[#1f2840]
Related colors
Frequently asked questions
#1f2840 (#1f2840) is rgb(31, 40, 64) in RGB.
No, #1f2840 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 #1f2840, or check how it holds up for accessibility.