#271A2B#271A2B

#271A2B is a very dark, muted purple. Relative luminance 0.013; OKLCH L 24.2% C 0.037 H 318.1°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#271A2B
RGBrgb(39, 26, 43)
HSLhsl(286, 25%, 14%)
HSVhsv(286, 40%, 17%)
CMYKcmyk(9.3%, 39.5%, 0%, 83.1%)
CIE-LABlab(11.58, 10.36, -8.97)
CIE-LCHlch(11.58, 13.70, 319.13°)
OKLaboklab(24.19% 0.0273 -0.0245)
OKLCHoklch(24.19% 0.037 318.1)
XYZxyz(1.6421, 1.3446, 2.4581)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A2B #1E2B1A
analogous
#1E1A2B #271A2B #2B1A26
triadic
#271A2B #2B271A #1A2B27
tetradic
#271A2B #2B1E1A #1E2B1A #1A262B
square
#271A2B #2B1E1A #1E2B1A #1A262B
split-complementary
#271A2B #262B1A #1A2B1E
monochromatic
#110C13 #110C13 #271A2B #4A3151 #6C4877

Accessibility & contrast

On white

16.55
#271A2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#271A2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A2B
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A2B#FFFFFF#000000##FFFFFF
##271A2B1.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181E2C
Deuteranopia (green-blind)
#1B1F2A
Tritanopia (blue-blind)
#271C20
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #271a2b;
/* rgb */ color: rgb(39, 26, 43);
/* oklch */ color: oklch(24.2% 0.037 318.1);
Tailwind
colors: {
  custom: {
    50: '#615664',
    500: '#271a2b',
    950: '#000000',
  },
}
SCSS
$custom: #271a2b;
$custom-light: #615664;
$custom-dark: #000000;
JSON
{
  "hex": "#271a2b",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 43
  },
  "hsl": {
    "h": 285.882,
    "s": 24.638,
    "l": 13.529
  },
  "oklch": {
    "l": 0.2419,
    "c": 0.03665,
    "h": 318.1
  },
  "luminance": 0.01345
}

Semantic roles & 50–950 ramp

primary
#271A2B
secondary
#495E43
accent
#C1677C
background
#F5F5F5
surface
#E9E9EA
border
#C5C5C6
text
#050305
muted
#797879

Preview Lab

Preview with #271A2B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#271A2B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva