#271C2A#271C2A

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

Color values

HEX#271C2A
RGBrgb(39, 28, 42)
HSLhsl(287, 20%, 14%)
HSVhsv(287, 33%, 16%)
CMYKcmyk(7.1%, 33.3%, 0%, 83.5%)
CIE-LABlab(12.15, 8.65, -7.37)
CIE-LCHlch(12.15, 11.36, 319.56°)
OKLaboklab(24.61% 0.023 -0.02)
OKLCHoklch(24.61% 0.03 318.9)
XYZxyz(1.6698, 1.4290, 2.3779)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C2A #1F2A1C
analogous
#201C2A #271C2A #2A1C26
triadic
#271C2A #2A271C #1C2A27
tetradic
#271C2A #2A201C #1F2A1C #1C262A
square
#271C2A #2A201C #1F2A1C #1C262A
split-complementary
#271C2A #262A1C #1C2A20
monochromatic
#110C12 #110C12 #271C2A #49344F #6B4D73

Accessibility & contrast

On white

16.33
#271C2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#271C2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C2A
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C2A#FFFFFF#000000##FFFFFF
##271C2A1.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A1F2B
Deuteranopia (green-blind)
#1D202A
Tritanopia (blue-blind)
#271E21
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271c2a;
/* rgb */ color: rgb(39, 28, 42);
/* oklch */ color: oklch(24.6% 0.030 318.9);
Tailwind
colors: {
  custom: {
    50: '#615863',
    500: '#271c2a',
    950: '#000000',
  },
}
SCSS
$custom: #271c2a;
$custom-light: #615863;
$custom-dark: #000000;
JSON
{
  "hex": "#271c2a",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 42
  },
  "hsl": {
    "h": 287.143,
    "s": 20,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24606,
    "c": 0.03046,
    "h": 318.9
  },
  "luminance": 0.01429
}

Semantic roles & 50–950 ramp

primary
#271C2A
secondary
#4A5C46
accent
#BD6B7D
background
#F5F5F5
surface
#E9E9EA
border
#C5C5C6
text
#050305
muted
#797879

Preview Lab

Preview with #271C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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