#271D2C#271D2C

#271D2C is a very dark, muted purple. Relative luminance 0.015; OKLCH L 24.9% C 0.031 H 314.2°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#271D2C
RGBrgb(39, 29, 44)
HSLhsl(280, 21%, 14%)
HSVhsv(280, 34%, 17%)
CMYKcmyk(11.4%, 34.1%, 0%, 82.7%)
CIE-LABlab(12.56, 8.45, -8.20)
CIE-LCHlch(12.56, 11.78, 315.85°)
OKLaboklab(24.95% 0.0217 -0.0224)
OKLCHoklch(24.95% 0.031 314.2)
XYZxyz(1.7306, 1.4919, 2.5792)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D2C #222C1D
analogous
#201D2C #271D2C #2C1D2A
triadic
#271D2C #2C271D #1D2C27
tetradic
#271D2C #2C201D #222C1D #1D2A2C
square
#271D2C #2C201D #222C1D #1D2A2C
split-complementary
#271D2C #2A2C1D #1D2C20
monochromatic
#100C12 #100C12 #271D2C #483551 #684E76

Accessibility & contrast

On white

16.17
#271D2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#271D2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D2C
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D2C#FFFFFF#000000##FFFFFF
##271D2C1.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B202D
Deuteranopia (green-blind)
#1D212C
Tritanopia (blue-blind)
#271F22
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271d2c;
/* rgb */ color: rgb(39, 29, 44);
/* oklch */ color: oklch(24.9% 0.031 314.2);
Tailwind
colors: {
  custom: {
    50: '#615965',
    500: '#271d2c',
    950: '#000000',
  },
}
SCSS
$custom: #271d2c;
$custom-light: #615965;
$custom-dark: #000000;
JSON
{
  "hex": "#271d2c",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 44
  },
  "hsl": {
    "h": 280,
    "s": 20.548,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24949,
    "c": 0.03119,
    "h": 314.2
  },
  "luminance": 0.01492
}

Semantic roles & 50–950 ramp

primary
#271D2C
secondary
#4E5E47
accent
#BD6B86
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050305
muted
#79787A

Preview Lab

Preview with #271D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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