Skip to content
Kolorvia
#1f152a

Color #1f152a

A muted very dark purple.

Conversions

HEX
#1f152a
RGB
rgb(31, 21, 42)
HSL
hsl(268.6, 33.3%, 12.4%)
HSV / HSB
hsv(268.6, 50%, 16.5%)
CMYK
cmyk(26.2%, 50%, 0%, 83.5%)
LAB
lab(8.95, 10.52, -12.4)
LCH
lch(8.95, 16.26, 310.31)
OKLCH
oklch(21.9%, 0.0421, 305.05)
HWB
hwb(268.6, 8.2%, 83.5%)

Harmony colors

Complementary

#202a15

Analogous

#15162a
#1f152a
#2a152a

Triadic

#1f152a
#2a1f15
#152a1f

Split-complementary

#1f152a
#2a2a15
#162a15

Tetradic

#1f152a
#2a1520
#202a15
#152a1f

Square

#1f152a
#2a1516
#202a15
#152a2a

Shades

Color #1f152a mixed toward black.

#1a1223
#150e1c
#100b15
#0a070e
#050407

Tints

Color #1f152a mixed toward white.

#442e5c
#68478d
#8e6ab5
#b39ccd
#d9cde6

Tones

Color #1f152a mixed toward gray.

#1f1728
#1f1927
#1f1a25
#1f1c23
#201e21

Accessibility

Aa White text on this color
17.52:1
Aa Black text on this color
1.2:1

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

Under color vision deficiencies

Protanopia

#1b1b26 · ΔE 7.7

Deuteranopia

#1c1c25 · ΔE 8.7

Tritanopia

#1f2222 · ΔE 15.4

Achromatopsia

#191919 · ΔE 13.8

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

Code

CSS
background-color: #1f152a;
Tailwind (arbitrary value)
bg-[#1f152a]

Related colors

Rebecca Purple #663399
Blue Violet #8a2be2
Indigo #4b0082
Medium Purple #9370db
Dark Orchid #9932cc
Dark Violet #9400d3

Frequently asked questions

#1f152a (#1f152a) is rgb(31, 21, 42) in RGB.

No, #1f152a 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 #1f152a, 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.