#271F2A#271F2A

#271F2A is a dark, muted purple. Relative luminance 0.016; OKLCH L 25.3% C 0.023 H 316.7°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#271F2A
RGBrgb(39, 31, 42)
HSLhsl(284, 15%, 14%)
HSVhsv(284, 26%, 16%)
CMYKcmyk(7.1%, 26.2%, 0%, 83.5%)
CIE-LABlab(13.10, 6.47, -5.93)
CIE-LCHlch(13.10, 8.77, 317.48°)
OKLaboklab(25.34% 0.017 -0.016)
OKLCHoklch(25.34% 0.023 316.7)
XYZxyz(1.7445, 1.5785, 2.4028)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F2A #222A1F
analogous
#221F2A #271F2A #2A1F28
triadic
#271F2A #2A271F #1F2A27
tetradic
#271F2A #2A221F #222A1F #1F282A
square
#271F2A #2A221F #222A1F #1F282A
split-complementary
#271F2A #282A1F #1F2A22
monochromatic
#100D12 #100D12 #271F2A #48394D #685370

Accessibility & contrast

On white

15.96
#271F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#271F2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F2A
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F2A#FFFFFF#000000##FFFFFF
##271F2A1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E212A
Deuteranopia (green-blind)
#1F222A
Tritanopia (blue-blind)
#272023
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #271f2a;
/* rgb */ color: rgb(39, 31, 42);
/* oklch */ color: oklch(25.3% 0.023 316.7);
Tailwind
colors: {
  custom: {
    50: '#615a63',
    500: '#271f2a',
    950: '#000000',
  },
}
SCSS
$custom: #271f2a;
$custom-light: #615a63;
$custom-dark: #000000;
JSON
{
  "hex": "#271f2a",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 42
  },
  "hsl": {
    "h": 283.636,
    "s": 15.068,
    "l": 14.314
  },
  "oklch": {
    "l": 0.25335,
    "c": 0.02337,
    "h": 316.7
  },
  "luminance": 0.01578
}

Semantic roles & 50–950 ramp

primary
#271F2A
secondary
#4E5B4A
accent
#B87084
background
#F5F5F5
surface
#E9E9EA
border
#C5C5C6
text
#050305
muted
#797879

Preview Lab

Preview with #271F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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