Color #0f315e
A vivid, highly saturated dark blue.
Conversions
#0f315e
rgb(15, 49, 94)
hsl(214.2, 72.5%, 21.4%)
hsv(214.2, 84%, 36.9%)
cmyk(84%, 47.9%, 0%, 63.1%)
lab(20.46, 6.19, -30.32)
lch(20.46, 30.95, 281.54)
oklch(31.6%, 0.0892, 256.85)
hwb(214.2, 5.9%, 63.1%)
Harmony colors
Accessibility
White text reads better on this background (12.95:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#222256 · ΔE 8
Deuteranopia
#201d53 · ΔE 9.3
Tritanopia
#124e4d · ΔE 23.8
Achromatopsia
#313131 · ΔE 18.5
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #0f315e;
bg-[#0f315e]
Related colors
Frequently asked questions
#0f315e (#0f315e) is rgb(15, 49, 94) in RGB.
No, #0f315e 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 #0f315e, or check how it holds up for accessibility.