#271A28#271A28

#271A28 is a very dark, muted purple. Relative luminance 0.013; OKLCH L 24.0% C 0.032 H 324.1°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#271A28
RGBrgb(39, 26, 40)
HSLhsl(296, 21%, 13%)
HSVhsv(296, 35%, 16%)
CMYKcmyk(2.5%, 35%, 0%, 84.3%)
CIE-LABlab(11.44, 9.58, -6.99)
CIE-LCHlch(11.44, 11.86, 323.89°)
OKLaboklab(24.03% 0.0262 -0.0189)
OKLCHoklch(24.03% 0.032 324.1)
XYZxyz(1.5891, 1.3234, 2.1788)
Luminance0.0132 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A28 #1B281A
analogous
#201A28 #271A28 #281A22
triadic
#271A28 #28271A #1A2827
tetradic
#271A28 #28201A #1B281A #1A2228
square
#271A28 #28201A #1B281A #1A2228
split-complementary
#271A28 #22281A #1A2820
monochromatic
#120C13 #120C13 #271A28 #4B324D #6F4A72

Accessibility & contrast

On white

16.61
#271A28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#271A28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A28
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A28#FFFFFF#000000##FFFFFF
##271A281.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191D29
Deuteranopia (green-blind)
#1C1F28
Tritanopia (blue-blind)
#281B1F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #271a28;
/* rgb */ color: rgb(39, 26, 40);
/* oklch */ color: oklch(24.0% 0.032 324.1);
Tailwind
colors: {
  custom: {
    50: '#615661',
    500: '#271a28',
    950: '#000000',
  },
}
SCSS
$custom: #271a28;
$custom-light: #615661;
$custom-dark: #000000;
JSON
{
  "hex": "#271a28",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 40
  },
  "hsl": {
    "h": 295.714,
    "s": 21.212,
    "l": 12.941
  },
  "oklch": {
    "l": 0.24031,
    "c": 0.0323,
    "h": 324.1
  },
  "luminance": 0.01323
}

Semantic roles & 50–950 ramp

primary
#271A28
secondary
#455B43
accent
#BE6A70
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#050305
muted
#797879

Preview Lab

Preview with #271A28

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

Preview Lab → · Contrast checker → · Palette generator →

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