#271B28#271B28

#271B28 is a very dark, muted purple. Relative luminance 0.014; OKLCH L 24.3% C 0.030 H 323.9°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#271B28
RGBrgb(39, 27, 40)
HSLhsl(295, 19%, 13%)
HSVhsv(295, 33%, 16%)
CMYKcmyk(2.5%, 32.5%, 0%, 84.3%)
CIE-LABlab(11.75, 8.86, -6.52)
CIE-LCHlch(11.75, 11.00, 323.64°)
OKLaboklab(24.27% 0.0242 -0.0176)
OKLCHoklch(24.27% 0.03 323.9)
XYZxyz(1.6116, 1.3684, 2.1863)
Luminance0.0137 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B28 #1C281B
analogous
#201B28 #271B28 #281B22
triadic
#271B28 #28271B #1B2827
tetradic
#271B28 #28201B #1C281B #1B2228
square
#271B28 #28201B #1C281B #1B2228
split-complementary
#271B28 #22281B #1B2820
monochromatic
#120C12 #120C12 #271B28 #4B344D #6E4C71

Accessibility & contrast

On white

16.49
#271B28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B28
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B28#FFFFFF#000000##FFFFFF
##271B281.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A1E29
Deuteranopia (green-blind)
#1D1F28
Tritanopia (blue-blind)
#281C20
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #271b28;
/* rgb */ color: rgb(39, 27, 40);
/* oklch */ color: oklch(24.3% 0.030 323.9);
Tailwind
colors: {
  custom: {
    50: '#615761',
    500: '#271b28',
    950: '#000000',
  },
}
SCSS
$custom: #271b28;
$custom-light: #615761;
$custom-dark: #000000;
JSON
{
  "hex": "#271b28",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 40
  },
  "hsl": {
    "h": 295.385,
    "s": 19.403,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24266,
    "c": 0.02992,
    "h": 323.9
  },
  "luminance": 0.01368
}

Semantic roles & 50–950 ramp

primary
#271B28
secondary
#465A45
accent
#BC6C72
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#050305
muted
#797879

Preview Lab

Preview with #271B28

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

Preview Lab → · Contrast checker → · Palette generator →

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