Color #301f9d
A moderately saturated dark blue.
Conversions
#301f9d
rgb(48, 31, 157)
hsl(248.1, 67%, 36.9%)
hsv(248.1, 80.3%, 61.6%)
cmyk(69.4%, 80.3%, 0%, 38.4%)
lab(23.81, 45.62, -64.7)
lch(23.81, 79.17, 305.19)
oklch(36.3%, 0.1885, 277.5)
hwb(248.1, 12.2%, 38.4%)
Harmony colors
Accessibility
White text reads better on this background (11.61:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2a298b · ΔE 4
Deuteranopia
#2a2c86 · ΔE 5.3
Tritanopia
#2f7b77 · ΔE 38.9
Achromatopsia
#393939 · ΔE 28.5
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #301f9d;
bg-[#301f9d]
Related colors
Frequently asked questions
#301f9d (#301f9d) is rgb(48, 31, 157) in RGB.
No, #301f9d 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 #301f9d, or check how it holds up for accessibility.