Color #304071
A moderately saturated dark blue.
Conversions
#304071
rgb(48, 64, 113)
hsl(225.2, 40.4%, 31.6%)
hsv(225.2, 57.5%, 44.3%)
cmyk(57.5%, 43.4%, 0%, 55.7%)
lab(28.08, 9.44, -30.33)
lch(28.08, 31.77, 287.29)
oklch(38.3%, 0.0861, 268.54)
hwb(225.2, 18.8%, 55.7%)
Harmony colors
Accessibility
White text reads better on this background (10.01:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#383868 · ΔE 4.7
Deuteranopia
#373565 · ΔE 5.6
Tritanopia
#31605e · ΔE 25.1
Achromatopsia
#424242 · ΔE 19
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #304071;
bg-[#304071]
Related colors
Frequently asked questions
#304071 (#304071) is rgb(48, 64, 113) in RGB.
No, #304071 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 #304071, or check how it holds up for accessibility.