#271B2A#271B2A

#271B2A is a very dark, muted purple. Relative luminance 0.014; OKLCH L 24.4% C 0.033 H 319.5°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#271B2A
RGBrgb(39, 27, 42)
HSLhsl(288, 22%, 14%)
HSVhsv(288, 36%, 16%)
CMYKcmyk(7.1%, 35.7%, 0%, 83.5%)
CIE-LABlab(11.84, 9.37, -7.84)
CIE-LCHlch(11.84, 12.22, 320.08°)
OKLaboklab(24.37% 0.0249 -0.0213)
OKLCHoklch(24.37% 0.033 319.5)
XYZxyz(1.6465, 1.3824, 2.3701)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B2A #1E2A1B
analogous
#1F1B2A #271B2A #2A1B25
triadic
#271B2A #2A271B #1B2A27
tetradic
#271B2A #2A1F1B #1E2A1B #1B252A
square
#271B2A #2A1F1B #1E2A1B #1B252A
split-complementary
#271B2A #252A1B #1B2A1F
monochromatic
#110C13 #110C13 #271B2A #4A334F #6C4B75

Accessibility & contrast

On white

16.45
#271B2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#271B2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B2A
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B2A#FFFFFF#000000##FFFFFF
##271B2A1.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191E2B
Deuteranopia (green-blind)
#1C202A
Tritanopia (blue-blind)
#271D20
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #271b2a;
/* rgb */ color: rgb(39, 27, 42);
/* oklch */ color: oklch(24.4% 0.033 319.5);
Tailwind
colors: {
  custom: {
    50: '#615763',
    500: '#271b2a',
    950: '#000000',
  },
}
SCSS
$custom: #271b2a;
$custom-light: #615763;
$custom-dark: #000000;
JSON
{
  "hex": "#271b2a",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 42
  },
  "hsl": {
    "h": 288,
    "s": 21.739,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24369,
    "c": 0.03282,
    "h": 319.5
  },
  "luminance": 0.01382
}

Semantic roles & 50–950 ramp

primary
#271B2A
secondary
#495D44
accent
#BE6A7A
background
#F5F5F5
surface
#E9E9EA
border
#C5C5C6
text
#050305
muted
#797879

Preview Lab

Preview with #271B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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