Color #1f5124
A moderately saturated dark green.
Conversions
#1f5124
rgb(31, 81, 36)
hsl(126, 44.6%, 22%)
hsv(126, 61.7%, 31.8%)
cmyk(61.7%, 0%, 55.6%, 68.2%)
lab(30.16, -27.63, 21.39)
lch(30.16, 34.94, 142.25)
oklch(38.9%, 0.091, 145.44)
hwb(126, 12.2%, 68.2%)
Harmony colors
Accessibility
White text reads better on this background (9.29:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#3b3b33 · ΔE 19.1
Deuteranopia
#383436 · ΔE 27.6
Tritanopia
#233c3e · ΔE 19.7
Achromatopsia
#474747 · ΔE 21.9
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f5124;
bg-[#1f5124]
Related colors
Frequently asked questions
#1f5124 (#1f5124) is rgb(31, 81, 36) in RGB.
No, #1f5124 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 #1f5124, or check how it holds up for accessibility.