#271A2A#271A2A

#271A2A is a very dark, muted purple. Relative luminance 0.013; OKLCH L 24.1% C 0.035 H 319.9°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#271A2A
RGBrgb(39, 26, 42)
HSLhsl(289, 24%, 13%)
HSVhsv(289, 38%, 16%)
CMYKcmyk(7.1%, 38.1%, 0%, 83.5%)
CIE-LABlab(11.53, 10.10, -8.31)
CIE-LCHlch(11.53, 13.08, 320.55°)
OKLaboklab(24.14% 0.0269 -0.0226)
OKLCHoklch(24.14% 0.035 319.9)
XYZxyz(1.6240, 1.3373, 2.3626)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A2A #1D2A1A
analogous
#1F1A2A #271A2A #2A1A25
triadic
#271A2A #2A271A #1A2A27
tetradic
#271A2A #2A1F1A #1D2A1A #1A252A
square
#271A2A #2A1F1A #1D2A1A #1A252A
split-complementary
#271A2A #252A1A #1A2A1F
monochromatic
#120C13 #120C13 #271A2A #4A3150 #6D4976

Accessibility & contrast

On white

16.57
#271A2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A2A
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A2A#FFFFFF#000000##FFFFFF
##271A2A1.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181E2B
Deuteranopia (green-blind)
#1B1F29
Tritanopia (blue-blind)
#271C20
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #271a2a;
/* rgb */ color: rgb(39, 26, 42);
/* oklch */ color: oklch(24.1% 0.035 319.9);
Tailwind
colors: {
  custom: {
    50: '#615663',
    500: '#271a2a',
    950: '#000000',
  },
}
SCSS
$custom: #271a2a;
$custom-light: #615663;
$custom-dark: #000000;
JSON
{
  "hex": "#271a2a",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 42
  },
  "hsl": {
    "h": 288.75,
    "s": 23.529,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24136,
    "c": 0.03516,
    "h": 319.9
  },
  "luminance": 0.01337
}

Semantic roles & 50–950 ramp

primary
#271A2A
secondary
#485D43
accent
#C06878
background
#F5F5F5
surface
#E9E9EA
border
#C5C5C6
text
#050305
muted
#797879

Preview Lab

Preview with #271A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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