#271C2B#271C2B

#271C2B is a very dark, muted purple. Relative luminance 0.014; OKLCH L 24.7% C 0.032 H 316.9°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#271C2B
RGBrgb(39, 28, 43)
HSLhsl(284, 21%, 14%)
HSVhsv(284, 35%, 17%)
CMYKcmyk(9.3%, 34.9%, 0%, 83.1%)
CIE-LABlab(12.20, 8.91, -8.03)
CIE-LCHlch(12.20, 11.99, 317.99°)
OKLaboklab(24.66% 0.0233 -0.0218)
OKLCHoklch(24.66% 0.032 316.9)
XYZxyz(1.6879, 1.4363, 2.4733)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C2B #202B1C
analogous
#201C2B #271C2B #2B1C28
triadic
#271C2B #2B271C #1C2B27
tetradic
#271C2B #2B201C #202B1C #1C282B
square
#271C2B #2B201C #202B1C #1C282B
split-complementary
#271C2B #282B1C #1C2B20
monochromatic
#110C13 #110C13 #271C2B #493450 #6A4C75

Accessibility & contrast

On white

16.31
#271C2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C2B
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C2B#FFFFFF#000000##FFFFFF
##271C2B1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271c2b;
/* rgb */ color: rgb(39, 28, 43);
/* oklch */ color: oklch(24.7% 0.032 316.9);
Tailwind
colors: {
  custom: {
    50: '#615864',
    500: '#271c2b',
    950: '#000000',
  },
}
SCSS
$custom: #271c2b;
$custom-light: #615864;
$custom-dark: #000000;
JSON
{
  "hex": "#271c2b",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 43
  },
  "hsl": {
    "h": 284,
    "s": 21.127,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24658,
    "c": 0.03197,
    "h": 316.9
  },
  "luminance": 0.01436
}

Semantic roles & 50–950 ramp

primary
#271C2B
secondary
#4C5D45
accent
#BE6A80
background
#F5F5F5
surface
#E9E9EA
border
#C5C5C6
text
#050305
muted
#797879

Preview Lab

Preview with #271C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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