Color #001f8f
A vivid, highly saturated dark blue.
Conversions
#001f8f
rgb(0, 31, 143)
hsl(227, 100%, 28%)
hsv(227, 100%, 56.1%)
cmyk(100%, 78.3%, 0%, 43.9%)
lab(19.89, 38.05, -62.62)
lch(19.89, 73.27, 301.28)
oklch(32.5%, 0.1828, 263.84)
hwb(227, 0%, 43.9%)
Harmony colors
Accessibility
White text reads better on this background (13.19:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#12127f · ΔE 3.7
Deuteranopia
#100d7b · ΔE 4.8
Tritanopia
#02706c · ΔE 38.4
Achromatopsia
#303030 · ΔE 27.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #001f8f;
bg-[#001f8f]
Related colors
Frequently asked questions
#001f8f (#001f8f) is rgb(0, 31, 143) in RGB.
No, #001f8f 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 #001f8f, or check how it holds up for accessibility.