Color #2a386c
A moderately saturated dark blue.
Conversions
#2a386c
rgb(42, 56, 108)
hsl(227.3, 44%, 29.4%)
hsv(227.3, 61.1%, 42.4%)
cmyk(61.1%, 48.1%, 0%, 57.6%)
lab(24.96, 11.72, -32.13)
lch(24.96, 34.2, 290.04)
oklch(35.7%, 0.0916, 269.94)
hwb(227.3, 16.5%, 57.6%)
Harmony colors
Accessibility
White text reads better on this background (11.17:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#313162 · ΔE 4.1
Deuteranopia
#302f60 · ΔE 4.6
Tritanopia
#2b5a58 · ΔE 25.8
Achromatopsia
#3b3b3b · ΔE 19.9
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #2a386c;
bg-[#2a386c]
Related colors
Frequently asked questions
#2a386c (#2a386c) is rgb(42, 56, 108) in RGB.
No, #2a386c 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 #2a386c, or check how it holds up for accessibility.