Color #1f502a
A moderately saturated dark green.
Conversions
#1f502a
rgb(31, 80, 42)
hsl(133.5, 44.1%, 21.8%)
hsv(133.5, 61.2%, 31.4%)
cmyk(61.2%, 0%, 47.5%, 68.6%)
lab(29.9, -26.11, 17.53)
lch(29.9, 31.45, 146.12)
oklch(38.7%, 0.0829, 148.57)
hwb(133.5, 12.2%, 68.6%)
Harmony colors
Accessibility
White text reads better on this background (9.38:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#3a3b36 · ΔE 19.1
Deuteranopia
#373339 · ΔE 26.9
Tritanopia
#233e3f · ΔE 17.2
Achromatopsia
#464646 · ΔE 21.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f502a;
bg-[#1f502a]
Related colors
Frequently asked questions
#1f502a (#1f502a) is rgb(31, 80, 42) in RGB.
No, #1f502a 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 #1f502a, or check how it holds up for accessibility.