Color #304175
A moderately saturated dark blue.
Conversions
#304175
rgb(48, 65, 117)
hsl(225.2, 41.8%, 32.4%)
hsv(225.2, 59%, 45.9%)
cmyk(59%, 44.4%, 0%, 54.1%)
lab(28.62, 10.21, -31.99)
lch(28.62, 33.58, 287.7)
oklch(38.8%, 0.091, 268.3)
hwb(225.2, 18.8%, 54.1%)
Harmony colors
Accessibility
White text reads better on this background (9.82:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#38386b · ΔE 4.9
Deuteranopia
#373669 · ΔE 5.4
Tritanopia
#316361 · ΔE 25.6
Achromatopsia
#434343 · ΔE 19.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #304175;
bg-[#304175]
Related colors
Frequently asked questions
#304175 (#304175) is rgb(48, 65, 117) in RGB.
No, #304175 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 #304175, or check how it holds up for accessibility.