Color #302546
A muted dark purple.
Conversions
#302546
rgb(48, 37, 70)
hsl(260, 30.8%, 21%)
hsv(260, 47.1%, 27.5%)
cmyk(31.4%, 47.1%, 0%, 72.5%)
lab(17.43, 13.67, -18.88)
lch(17.43, 23.31, 305.91)
oklch(29.4%, 0.0598, 298.02)
hwb(260, 14.5%, 72.5%)
Harmony colors
Accessibility
White text reads better on this background (14.2:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2c2c40 · ΔE 7
Deuteranopia
#2c2d3e · ΔE 8.6
Tritanopia
#303a39 · ΔE 20.8
Achromatopsia
#2b2b2b · ΔE 17
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #302546;
bg-[#302546]
Related colors
Frequently asked questions
#302546 (#302546) is rgb(48, 37, 70) in RGB.
No, #302546 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 #302546, or check how it holds up for accessibility.