Color #334aa4
A moderately saturated medium blue.
Conversions
#334aa4
rgb(51, 74, 164)
hsl(227.8, 52.6%, 42.2%)
hsv(227.8, 68.9%, 64.3%)
cmyk(68.9%, 54.9%, 0%, 35.7%)
lab(34.56, 22.07, -51.33)
lch(34.56, 55.87, 293.27)
oklch(44.4%, 0.1476, 268.84)
hwb(227.8, 20%, 35.7%)
Harmony colors
Accessibility
White text reads better on this background (7.91:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#3e3e94 · ΔE 5.2
Deuteranopia
#3d3b90 · ΔE 6.1
Tritanopia
#348683 · ΔE 33.8
Achromatopsia
#515151 · ΔE 24.9
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #334aa4;
bg-[#334aa4]
Related colors
Frequently asked questions
#334aa4 (#334aa4) is rgb(51, 74, 164) in RGB.
No, #334aa4 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 #334aa4, or check how it holds up for accessibility.