#271F29#271F29

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

Color values

HEX#271F29
RGBrgb(39, 31, 41)
HSLhsl(288, 14%, 14%)
HSVhsv(288, 24%, 16%)
CMYKcmyk(4.9%, 24.4%, 0%, 83.9%)
CIE-LABlab(13.05, 6.21, -5.27)
CIE-LCHlch(13.05, 8.14, 319.68°)
OKLaboklab(25.29% 0.0166 -0.0142)
OKLCHoklch(25.29% 0.022 319.5)
XYZxyz(1.7269, 1.5714, 2.3097)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F29 #21291F
analogous
#221F29 #271F29 #291F26
triadic
#271F29 #29271F #1F2927
tetradic
#271F29 #29221F #21291F #1F2629
square
#271F29 #29221F #21291F #1F2629
split-complementary
#271F29 #26291F #1F2922
monochromatic
#110D11 #110D11 #271F29 #48394C #69546F

Accessibility & contrast

On white

15.98
#271F29 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F29
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F29#FFFFFF#000000##FFFFFF
##271F291.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2129
Deuteranopia (green-blind)
#202229
Tritanopia (blue-blind)
#272022
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #271f29;
/* rgb */ color: rgb(39, 31, 41);
/* oklch */ color: oklch(25.3% 0.022 319.5);
Tailwind
colors: {
  custom: {
    50: '#615a62',
    500: '#271f29',
    950: '#000000',
  },
}
SCSS
$custom: #271f29;
$custom-light: #615a62;
$custom-dark: #000000;
JSON
{
  "hex": "#271f29",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 41
  },
  "hsl": {
    "h": 288,
    "s": 13.889,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25287,
    "c": 0.02184,
    "h": 319.5
  },
  "luminance": 0.01571
}

Semantic roles & 50–950 ramp

primary
#271F29
secondary
#4D5A4A
accent
#B7717F
background
#F5F5F5
surface
#E9E9EA
border
#C5C5C6
text
#050305
muted
#797879

Preview Lab

Preview with #271F29

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

Preview Lab → · Contrast checker → · Palette generator →

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