Skip to content
Kolorvia
#271f48

Color #271f48

A muted dark blue.

Conversions

HEX
#271f48
RGB
rgb(39, 31, 72)
HSL
hsl(251.7, 39.8%, 20.2%)
HSV / HSB
hsv(251.7, 56.9%, 28.2%)
CMYK
cmyk(45.8%, 56.9%, 0%, 71.8%)
LAB
lab(14.84, 15.69, -24.43)
LCH
lch(14.84, 29.03, 302.71)
OKLCH
oklch(27.2%, 0.0735, 289.54)
HWB
hwb(251.7, 12.2%, 71.8%)

Harmony colors

Complementary

#40481f

Analogous

#1f2c48
#271f48
#3c1f48

Triadic

#271f48
#48271f
#1f4827

Split-complementary

#271f48
#483c1f
#2c481f

Tetradic

#271f48
#481f40
#40481f
#1f4827

Square

#271f48
#481f2c
#40481f
#1f483c

Shades

Color #271f48 mixed toward black.

#211a3c
#1a1530
#141024
#0d0a18
#07050c

Tints

Color #271f48 mixed toward white.

#413377
#5a48a7
#8171c2
#aba0d6
#d5d0eb

Tones

Color #271f48 mixed toward gray.

#292245
#2b2641
#2d293e
#2f2d3a
#313037

Accessibility

Aa White text on this color
15.26:1
Aa Black text on this color
1.38:1

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

Under color vision deficiencies

Protanopia

#242441 · ΔE 4.7

Deuteranopia

#24253f · ΔE 5.9

Tritanopia

#273a39 · ΔE 23.6

Achromatopsia

#252525 · ΔE 19

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

Code

CSS
background-color: #271f48;
Tailwind (arbitrary value)
bg-[#271f48]

Related colors

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

Frequently asked questions

#271f48 (#271f48) is rgb(39, 31, 72) in RGB.

No, #271f48 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 #271f48, 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.