Color #2f256e
A moderately saturated dark blue.
Conversions
#2f256e
rgb(47, 37, 110)
hsl(248.2, 49.7%, 28.8%)
hsv(248.2, 66.4%, 43.1%)
cmyk(57.3%, 66.4%, 0%, 56.9%)
lab(20.25, 26.57, -41)
lch(20.25, 48.86, 302.95)
oklch(32.4%, 0.1211, 283.57)
hwb(248.2, 14.5%, 56.9%)
Harmony colors
Accessibility
White text reads better on this background (13.04:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2b2b62 · ΔE 4
Deuteranopia
#2c2c5f · ΔE 4.9
Tritanopia
#2f5755 · ΔE 28.6
Achromatopsia
#313131 · ΔE 23.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #2f256e;
bg-[#2f256e]
Related colors
Frequently asked questions
#2f256e (#2f256e) is rgb(47, 37, 110) in RGB.
No, #2f256e 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 #2f256e, or check how it holds up for accessibility.