#271E2A#271E2A

#271E2A is a dark, muted purple. Relative luminance 0.015; OKLCH L 25.1% C 0.026 H 317.6°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#271E2A
RGBrgb(39, 30, 42)
HSLhsl(285, 17%, 14%)
HSVhsv(285, 29%, 16%)
CMYKcmyk(7.1%, 28.6%, 0%, 83.5%)
CIE-LABlab(12.78, 7.19, -6.41)
CIE-LCHlch(12.78, 9.63, 318.28°)
OKLaboklab(25.09% 0.019 -0.0173)
OKLCHoklch(25.09% 0.026 317.6)
XYZxyz(1.7188, 1.5271, 2.3942)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E2A #212A1E
analogous
#211E2A #271E2A #2A1E27
triadic
#271E2A #2A271E #1E2A27
tetradic
#271E2A #2A211E #212A1E #1E272A
square
#271E2A #2A211E #212A1E #1E272A
split-complementary
#271E2A #272A1E #1E2A21
monochromatic
#110D12 #110D12 #271E2A #48384E #695171

Accessibility & contrast

On white

16.09
#271E2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#271E2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E2A
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E2A#FFFFFF#000000##FFFFFF
##271E2A1.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D212B
Deuteranopia (green-blind)
#1F212A
Tritanopia (blue-blind)
#271F22
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271e2a;
/* rgb */ color: rgb(39, 30, 42);
/* oklch */ color: oklch(25.1% 0.026 317.6);
Tailwind
colors: {
  custom: {
    50: '#615963',
    500: '#271e2a',
    950: '#000000',
  },
}
SCSS
$custom: #271e2a;
$custom-light: #615963;
$custom-dark: #000000;
JSON
{
  "hex": "#271e2a",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 42
  },
  "hsl": {
    "h": 285,
    "s": 16.667,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25089,
    "c": 0.02573,
    "h": 317.6
  },
  "luminance": 0.01527
}

Semantic roles & 50–950 ramp

primary
#271E2A
secondary
#4D5B48
accent
#B96E81
background
#F5F5F5
surface
#E9E9EA
border
#C5C5C6
text
#050305
muted
#797879

Preview Lab

Preview with #271E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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