Skip to content
Kolorvia
#31175c

Color #31175c

A moderately saturated dark purple.

Conversions

HEX
#31175c
RGB
rgb(49, 23, 92)
HSL
hsl(262.6, 60%, 22.5%)
HSV / HSB
hsv(262.6, 75%, 36.1%)
CMYK
cmyk(46.7%, 75%, 0%, 63.9%)
LAB
lab(15.69, 29.83, -36.59)
LCH
lch(15.69, 47.21, 309.19)
OKLCH
oklch(28.6%, 0.1159, 295.35)
HWB
hwb(262.6, 9%, 63.9%)

Harmony colors

Complementary

#425c17

Analogous

#171f5c
#31175c
#53175c

Triadic

#31175c
#5c3117
#175c31

Split-complementary

#31175c
#5c5317
#1f5c17

Tetradic

#31175c
#5c1742
#425c17
#175c31

Square

#31175c
#5c171f
#425c17
#175c53

Shades

Color #31175c mixed toward black.

#29134d
#210f3d
#180b2e
#10081f
#08040f

Tints

Color #31175c mixed toward white.

#4d2491
#6931c5
#8e61d7
#b396e5
#d9caf2

Tones

Color #31175c mixed toward gray.

#321d56
#342250
#35284b
#372e45
#38343f

Accessibility

Aa White text on this color
14.92:1
Aa Black text on this color
1.41:1

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

Under color vision deficiencies

Protanopia

#282851 · ΔE 8.2

Deuteranopia

#292b4f · ΔE 9.7

Tritanopia

#304845 · ΔE 27.1

Achromatopsia

#272727 · ΔE 23.7

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

Code

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

Related colors

Medium Purple #9370db
Rebecca Purple #663399
Blue Violet #8a2be2
Indigo #4b0082
Dark Slate Blue #483d8b
Medium Slate Blue #7b68ee

Frequently asked questions

#31175c (#31175c) is rgb(49, 23, 92) in RGB.

No, #31175c is not web-safe. The nearest web-safe colors are among its tones and shades below.

Related tools

Build something with this color

Generate a full palette from #31175c, 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.