Color #1f284e
A moderately saturated dark blue.
Conversions
#1f284e
rgb(31, 40, 78)
hsl(228.5, 43.1%, 21.4%)
hsv(228.5, 60.3%, 30.6%)
cmyk(60.3%, 48.7%, 0%, 69.4%)
lab(17.27, 9.14, -24.7)
lch(17.27, 26.34, 290.31)
oklch(29%, 0.0702, 271.39)
hwb(228.5, 12.2%, 69.4%)
Harmony colors
Accessibility
White text reads better on this background (14.27:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#232347 · ΔE 3.1
Deuteranopia
#232245 · ΔE 3.5
Tritanopia
#20413f · ΔE 23.6
Achromatopsia
#2a2a2a · ΔE 17.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f284e;
bg-[#1f284e]
Related colors
Frequently asked questions
#1f284e (#1f284e) is rgb(31, 40, 78) in RGB.
No, #1f284e 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 #1f284e, or check how it holds up for accessibility.