Skip to content
Kolorvia
#31187a

Color #31187a

A moderately saturated dark blue.

Conversions

HEX
#31187a
RGB
rgb(49, 24, 122)
HSL
hsl(255.3, 67.1%, 28.6%)
HSV / HSB
hsv(255.3, 80.3%, 47.8%)
CMYK
cmyk(59.8%, 80.3%, 0%, 52.2%)
LAB
lab(18.85, 38.45, -51.02)
LCH
lch(18.85, 63.89, 307)
OKLCH
oklch(31.8%, 0.1524, 285.49)
HWB
hwb(255.3, 9.4%, 52.2%)

Harmony colors

Complementary

#617a18

Analogous

#18307a
#31187a
#62187a

Triadic

#31187a
#7a3118
#187a31

Split-complementary

#31187a
#7a6218
#307a18

Tetradic

#31187a
#7a1861
#617a18
#187a31

Square

#31187a
#7a1830
#617a18
#187a62

Shades

Color #31187a mixed toward black.

#291466
#211051
#180c3d
#100829
#080414

Tints

Color #31187a mixed toward white.

#4522ad
#5e34d7
#8667e1
#ae9aeb
#d7ccf5

Tones

Color #31187a mixed toward gray.

#352072
#39286a
#3d3061
#413959
#454151

Accessibility

Aa White text on this color
13.62:1
Aa Black text on this color
1.54:1

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

Under color vision deficiencies

Protanopia

#28286c · ΔE 6.2

Deuteranopia

#292b68 · ΔE 7.6

Tritanopia

#305f5c · ΔE 32.5

Achromatopsia

#2e2e2e · ΔE 26.4

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

Code

CSS
background-color: #31187a;
Tailwind (arbitrary value)
bg-[#31187a]

Related colors

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

Frequently asked questions

#31187a (#31187a) is rgb(49, 24, 122) in RGB.

No, #31187a 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 #31187a, 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.