Color #28314e
A muted dark blue.
Conversions
#28314e
rgb(40, 49, 78)
hsl(225.8, 32.2%, 23.1%)
hsv(225.8, 48.7%, 30.6%)
cmyk(48.7%, 37.2%, 0%, 69.4%)
lab(20.82, 5.2, -19.04)
lch(20.82, 19.74, 285.28)
oklch(31.9%, 0.0534, 270.11)
hwb(225.8, 15.7%, 69.4%)
Harmony colors
Accessibility
White text reads better on this background (12.81:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2c2c48 · ΔE 3.7
Deuteranopia
#2c2b47 · ΔE 4.2
Tritanopia
#294342 · ΔE 19.5
Achromatopsia
#323232 · ΔE 14
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #28314e;
bg-[#28314e]
Related colors
Frequently asked questions
#28314e (#28314e) is rgb(40, 49, 78) in RGB.
No, #28314e 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 #28314e, or check how it holds up for accessibility.