Skip to content
Kolorvia
#42404c

Color #42404c

A nearly neutral, gray-leaning dark blue.

Conversions

HEX
#42404c
RGB
rgb(66, 64, 76)
HSL
hsl(250, 8.6%, 27.5%)
HSV / HSB
hsv(250, 15.8%, 29.8%)
CMYK
cmyk(13.2%, 15.8%, 0%, 70.2%)
LAB
lab(27.7, 3.66, -6.94)
LCH
lch(27.7, 7.85, 297.81)
OKLCH
oklch(37.8%, 0.0204, 293.05)
HWB
hwb(250, 25.1%, 70.2%)

Harmony colors

Complementary

#4a4c40

Analogous

#40444c
#42404c
#48404c

Triadic

#42404c
#4c4240
#404c42

Split-complementary

#42404c
#4c4840
#444c40

Tetradic

#42404c
#4c404a
#4a4c40
#404c42

Square

#42404c
#4c4044
#4a4c40
#404c48

Shades

Color #42404c mixed toward black.

#37353f
#2c2b33
#212026
#161519
#0b0b0d

Tints

Color #42404c mixed toward white.

#5f5c6e
#7d798e
#9d9bab
#bebcc7
#dedee3

Tones

Color #42404c mixed toward gray.

#43414b
#43424a
#444349
#454448
#454547

Accessibility

Aa White text on this color
10.15:1
Aa Black text on this color
2.07:1

White text reads better on this background (10.15:1). That passes WCAG AAA (≥7:1) for normal-size text.

Under color vision deficiencies

Protanopia

#414149 · ΔE 2.6

Deuteranopia

#414149 · ΔE 2.6

Tritanopia

#424747 · ΔE 9.2

Achromatopsia

#414141 · ΔE 7.4

Left half is the original, right half is the simulated appearance. See all 8 vision types →

Code

CSS
background-color: #42404c;
Tailwind (arbitrary value)
bg-[#42404c]

Related colors

Dark Slate Blue #483d8b
Medium Slate Blue #7b68ee
Slate Blue #6a5acd
Medium Purple #9370db
Navy #000080
Lavender #e6e6fa

Frequently asked questions

#42404c (#42404c) is rgb(66, 64, 76) in RGB.

No, #42404c is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.

Related tools

Build something with this color

Generate a full palette from #42404c, or check how it holds up for accessibility.

We use cookies for site preferences and, where enabled, Google Analytics and Google AdSense — which may use cookies to personalize ads based on your visits here and elsewhere. See our Privacy Policy for details. Your color tool inputs are never sent to us regardless of your choice.