Color #1f2651
A moderately saturated dark blue.
Conversions
#1f2651
rgb(31, 38, 81)
hsl(231.6, 44.6%, 22%)
hsv(231.6, 61.7%, 31.8%)
cmyk(61.7%, 53.1%, 0%, 68.2%)
lab(16.85, 11.76, -27.39)
lch(16.85, 29.81, 293.24)
oklch(28.8%, 0.0783, 273.51)
hwb(231.6, 12.2%, 68.2%)
Harmony colors
Accessibility
White text reads better on this background (14.44:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#222249 · ΔE 2.5
Deuteranopia
#222147 · ΔE 3
Tritanopia
#1f4241 · ΔE 24.4
Achromatopsia
#2a2a2a · ΔE 18.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f2651;
bg-[#1f2651]
Related colors
Frequently asked questions
#1f2651 (#1f2651) is rgb(31, 38, 81) in RGB.
No, #1f2651 is not web-safe. The nearest web-safe colors are among its tones and shades below.
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 #1f2651, or check how it holds up for accessibility.