Color #2f303c
A nearly neutral, gray-leaning dark blue.
Conversions
#2f303c
rgb(47, 48, 60)
hsl(235.4, 12.1%, 21%)
hsv(235.4, 21.7%, 23.5%)
cmyk(21.7%, 20%, 0%, 76.5%)
lab(20.22, 2.67, -7.71)
lch(20.22, 8.16, 289.1)
oklch(31.3%, 0.0214, 281.31)
hwb(235.4, 18.4%, 76.5%)
Harmony colors
Accessibility
White text reads better on this background (13.05:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2f2f39 · ΔE 1.1
Deuteranopia
#2f2f39 · ΔE 1.1
Tritanopia
#2f3737 · ΔE 9.7
Achromatopsia
#313131 · ΔE 7.3
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #2f303c;
bg-[#2f303c]
Related colors
Frequently asked questions
#2f303c (#2f303c) is rgb(47, 48, 60) in RGB.
No, #2f303c 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 #2f303c, or check how it holds up for accessibility.