#271F28#271F28

#271F28 is a dark, muted purple. Relative luminance 0.016; OKLCH L 25.2% C 0.020 H 322.6°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#271F28
RGBrgb(39, 31, 40)
HSLhsl(293, 13%, 14%)
HSVhsv(293, 23%, 16%)
CMYKcmyk(2.5%, 22.5%, 0%, 84.3%)
CIE-LABlab(13.01, 5.95, -4.61)
CIE-LCHlch(13.01, 7.53, 322.25°)
OKLaboklab(25.24% 0.0162 -0.0124)
OKLCHoklch(25.24% 0.02 322.6)
XYZxyz(1.7096, 1.5645, 2.2190)
Luminance0.0157 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F28 #20281F
analogous
#231F28 #271F28 #281F25
triadic
#271F28 #28271F #1F2827
tetradic
#271F28 #28231F #20281F #1F2528
square
#271F28 #28231F #20281F #1F2528
split-complementary
#271F28 #25281F #1F2823
monochromatic
#110D11 #110D11 #271F28 #493A4A #6A546D

Accessibility & contrast

On white

15.99
#271F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F28
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F28#FFFFFF#000000##FFFFFF
##271F281.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271f28;
/* rgb */ color: rgb(39, 31, 40);
/* oklch */ color: oklch(25.2% 0.020 322.6);
Tailwind
colors: {
  custom: {
    50: '#615a61',
    500: '#271f28',
    950: '#000000',
  },
}
SCSS
$custom: #271f28;
$custom-light: #615a61;
$custom-dark: #000000;
JSON
{
  "hex": "#271f28",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 40
  },
  "hsl": {
    "h": 293.333,
    "s": 12.676,
    "l": 13.922
  },
  "oklch": {
    "l": 0.2524,
    "c": 0.02035,
    "h": 322.6
  },
  "luminance": 0.01565
}

Semantic roles & 50–950 ramp

primary
#271F28
secondary
#4C594A
accent
#B6727A
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#050305
muted
#797879

Preview Lab

Preview with #271F28

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

Preview Lab → · Contrast checker → · Palette generator →

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