#271E2B#271E2B

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

Color values

HEX#271E2B
RGBrgb(39, 30, 43)
HSLhsl(282, 18%, 14%)
HSVhsv(282, 30%, 17%)
CMYKcmyk(9.3%, 30.2%, 0%, 83.1%)
CIE-LABlab(12.82, 7.46, -7.07)
CIE-LCHlch(12.82, 10.28, 316.53°)
OKLaboklab(25.14% 0.0194 -0.0192)
OKLCHoklch(25.14% 0.027 315.3)
XYZxyz(1.7370, 1.5343, 2.4897)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E2B #222B1E
analogous
#211E2B #271E2B #2B1E29
triadic
#271E2B #2B271E #1E2B27
tetradic
#271E2B #2B211E #222B1E #1E292B
square
#271E2B #2B211E #222B1E #1E292B
split-complementary
#271E2B #292B1E #1E2B21
monochromatic
#100D12 #100D12 #271E2B #48374F #685073

Accessibility & contrast

On white

16.07
#271E2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E2B
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E2B#FFFFFF#000000##FFFFFF
##271E2B1.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C212C
Deuteranopia (green-blind)
#1E212B
Tritanopia (blue-blind)
#271F23
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271e2b;
/* rgb */ color: rgb(39, 30, 43);
/* oklch */ color: oklch(25.1% 0.027 315.3);
Tailwind
colors: {
  custom: {
    50: '#615964',
    500: '#271e2b',
    950: '#000000',
  },
}
SCSS
$custom: #271e2b;
$custom-light: #615964;
$custom-dark: #000000;
JSON
{
  "hex": "#271e2b",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 43
  },
  "hsl": {
    "h": 281.538,
    "s": 17.808,
    "l": 14.314
  },
  "oklch": {
    "l": 0.25139,
    "c": 0.02729,
    "h": 315.3
  },
  "luminance": 0.01534
}

Semantic roles & 50–950 ramp

primary
#271E2B
secondary
#4E5D48
accent
#BA6D85
background
#F5F5F5
surface
#E9E9EA
border
#C5C5C6
text
#050305
muted
#797879

Preview Lab

Preview with #271E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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