#271A2D#271A2D

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

Color values

HEX#271A2D
RGBrgb(39, 26, 45)
HSLhsl(281, 27%, 14%)
HSVhsv(281, 42%, 18%)
CMYKcmyk(13.3%, 42.2%, 0%, 82.4%)
CIE-LABlab(11.69, 10.90, -10.27)
CIE-LCHlch(11.69, 14.98, 316.71°)
OKLaboklab(24.3% 0.0279 -0.0282)
OKLCHoklch(24.3% 0.04 314.7)
XYZxyz(1.6797, 1.3596, 2.6561)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A2D #202D1A
analogous
#1E1A2D #271A2D #2D1A2A
triadic
#271A2D #2D271A #1A2D27
tetradic
#271A2D #2D1E1A #202D1A #1A2A2D
square
#271A2D #2D1E1A #202D1A #1A2A2D
split-complementary
#271A2D #2A2D1A #1A2D1E
monochromatic
#110B13 #110B13 #271A2D #493054 #6A477B

Accessibility & contrast

On white

16.51
#271A2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A2D
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A2D#FFFFFF#000000##FFFFFF
##271A2D1.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171E2E
Deuteranopia (green-blind)
#1A1F2C
Tritanopia (blue-blind)
#271C21
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #271a2d;
/* rgb */ color: rgb(39, 26, 45);
/* oklch */ color: oklch(24.3% 0.040 314.7);
Tailwind
colors: {
  custom: {
    50: '#615666',
    500: '#271a2d',
    950: '#000000',
  },
}
SCSS
$custom: #271a2d;
$custom-light: #615666;
$custom-dark: #000000;
JSON
{
  "hex": "#271a2d",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 45
  },
  "hsl": {
    "h": 281.053,
    "s": 26.761,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24301,
    "c": 0.03968,
    "h": 314.7
  },
  "luminance": 0.0136
}

Semantic roles & 50–950 ramp

primary
#271A2D
secondary
#4C6142
accent
#C36583
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050305
muted
#79787A

Preview Lab

Preview with #271A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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