Color #123f8a
A vivid, highly saturated dark blue.
Conversions
#123f8a
rgb(18, 63, 138)
hsl(217.5, 76.9%, 30.6%)
hsv(217.5, 87%, 54.1%)
cmyk(87%, 54.3%, 0%, 45.9%)
lab(28.16, 15.29, -45.93)
lch(28.16, 48.41, 288.41)
oklch(38.6%, 0.1344, 260.28)
hwb(217.5, 7.1%, 45.9%)
Harmony colors
Accessibility
White text reads better on this background (9.98:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2c2c7d · ΔE 8.2
Deuteranopia
#292679 · ΔE 9.7
Tritanopia
#16716e · ΔE 31.1
Achromatopsia
#424242 · ΔE 23.4
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #123f8a;
bg-[#123f8a]
Related colors
Frequently asked questions
#123f8a (#123f8a) is rgb(18, 63, 138) in RGB.
No, #123f8a 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 #123f8a, or check how it holds up for accessibility.