#271D2B#271D2B

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

Color values

HEX#271D2B
RGBrgb(39, 29, 43)
HSLhsl(283, 19%, 14%)
HSVhsv(283, 33%, 17%)
CMYKcmyk(9.3%, 32.6%, 0%, 83.1%)
CIE-LABlab(12.51, 8.18, -7.55)
CIE-LCHlch(12.51, 11.13, 317.30°)
OKLaboklab(24.9% 0.0214 -0.0205)
OKLCHoklch(24.9% 0.03 316.2)
XYZxyz(1.7120, 1.4845, 2.4814)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D2B #212B1D
analogous
#201D2B #271D2B #2B1D28
triadic
#271D2B #2B271D #1D2B27
tetradic
#271D2B #2B201D #212B1D #1D282B
square
#271D2B #2B201D #212B1D #1D282B
split-complementary
#271D2B #282B1D #1D2B20
monochromatic
#110C12 #110C12 #271D2B #483650 #694E74

Accessibility & contrast

On white

16.19
#271D2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D2B
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D2B#FFFFFF#000000##FFFFFF
##271D2B1.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271d2b;
/* rgb */ color: rgb(39, 29, 43);
/* oklch */ color: oklch(24.9% 0.030 316.2);
Tailwind
colors: {
  custom: {
    50: '#615964',
    500: '#271d2b',
    950: '#000000',
  },
}
SCSS
$custom: #271d2b;
$custom-light: #615964;
$custom-dark: #000000;
JSON
{
  "hex": "#271d2b",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 43
  },
  "hsl": {
    "h": 282.857,
    "s": 19.444,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24897,
    "c": 0.02963,
    "h": 316.2
  },
  "luminance": 0.01484
}

Semantic roles & 50–950 ramp

primary
#271D2B
secondary
#4D5D47
accent
#BC6C83
background
#F5F5F5
surface
#E9E9EA
border
#C5C5C6
text
#050305
muted
#797879

Preview Lab

Preview with #271D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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