#271B2B#271B2B

#271B2B is a very dark, muted purple. Relative luminance 0.014; OKLCH L 24.4% C 0.034 H 317.5°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#271B2B
RGBrgb(39, 27, 43)
HSLhsl(285, 23%, 14%)
HSVhsv(285, 37%, 17%)
CMYKcmyk(9.3%, 37.2%, 0%, 83.1%)
CIE-LABlab(11.89, 9.63, -8.50)
CIE-LCHlch(11.89, 12.85, 318.59°)
OKLaboklab(24.42% 0.0253 -0.0232)
OKLCHoklch(24.42% 0.034 317.5)
XYZxyz(1.6646, 1.3897, 2.4656)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B2B #1F2B1B
analogous
#1F1B2B #271B2B #2B1B27
triadic
#271B2B #2B271B #1B2B27
tetradic
#271B2B #2B1F1B #1F2B1B #1B272B
square
#271B2B #2B1F1B #1F2B1B #1B272B
split-complementary
#271B2B #272B1B #1B2B1F
monochromatic
#110C13 #110C13 #271B2B #493351 #6B4A76

Accessibility & contrast

On white

16.43
#271B2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#271B2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B2B
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B2B#FFFFFF#000000##FFFFFF
##271B2B1.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191E2C
Deuteranopia (green-blind)
#1C202A
Tritanopia (blue-blind)
#271D21
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #271b2b;
/* rgb */ color: rgb(39, 27, 43);
/* oklch */ color: oklch(24.4% 0.034 317.5);
Tailwind
colors: {
  custom: {
    50: '#615764',
    500: '#271b2b',
    950: '#000000',
  },
}
SCSS
$custom: #271b2b;
$custom-light: #615764;
$custom-dark: #000000;
JSON
{
  "hex": "#271b2b",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 43
  },
  "hsl": {
    "h": 285,
    "s": 22.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24422,
    "c": 0.03431,
    "h": 317.5
  },
  "luminance": 0.0139
}

Semantic roles & 50–950 ramp

primary
#271B2B
secondary
#4A5E44
accent
#BF687E
background
#F5F5F5
surface
#E9E9EA
border
#C5C5C6
text
#050305
muted
#797879

Preview Lab

Preview with #271B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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