Color #2a3366
A moderately saturated dark blue.
Conversions
#2a3366
rgb(42, 51, 102)
hsl(231, 41.7%, 28.2%)
hsv(231, 58.8%, 40%)
cmyk(58.8%, 50%, 0%, 60%)
lab(23.06, 12.99, -31.3)
lch(23.06, 33.89, 292.54)
oklch(34.2%, 0.0893, 273.27)
hwb(231, 16.5%, 60%)
Harmony colors
Accessibility
White text reads better on this background (11.91:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2e2e5d · ΔE 2.9
Deuteranopia
#2e2d5a · ΔE 3.6
Tritanopia
#2a5453 · ΔE 25.4
Achromatopsia
#373737 · ΔE 19.9
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #2a3366;
bg-[#2a3366]
Related colors
Frequently asked questions
#2a3366 (#2a3366) is rgb(42, 51, 102) in RGB.
No, #2a3366 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 #2a3366, or check how it holds up for accessibility.