#271D28#271D28

#271D28 is a very dark, muted purple. Relative luminance 0.015; OKLCH L 24.7% C 0.025 H 323.3°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#271D28
RGBrgb(39, 29, 40)
HSLhsl(295, 16%, 14%)
HSVhsv(295, 28%, 16%)
CMYKcmyk(2.5%, 27.5%, 0%, 84.3%)
CIE-LABlab(12.37, 7.40, -5.57)
CIE-LCHlch(12.37, 9.27, 323.03°)
OKLaboklab(24.75% 0.0202 -0.015)
OKLCHoklch(24.75% 0.025 323.3)
XYZxyz(1.6590, 1.4633, 2.2021)
Luminance0.0146 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D28 #1E281D
analogous
#211D28 #271D28 #281D23
triadic
#271D28 #28271D #1D2827
tetradic
#271D28 #28211D #1E281D #1D2328
square
#271D28 #28211D #1E281D #1D2328
split-complementary
#271D28 #23281D #1D2821
monochromatic
#110D12 #110D12 #271D28 #4A374B #6C506F

Accessibility & contrast

On white

16.25
#271D28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#271D28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D28
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D28#FFFFFF#000000##FFFFFF
##271D281.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2028
Deuteranopia (green-blind)
#1E2128
Tritanopia (blue-blind)
#271E21
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271d28;
/* rgb */ color: rgb(39, 29, 40);
/* oklch */ color: oklch(24.7% 0.025 323.3);
Tailwind
colors: {
  custom: {
    50: '#615961',
    500: '#271d28',
    950: '#000000',
  },
}
SCSS
$custom: #271d28;
$custom-light: #615961;
$custom-dark: #000000;
JSON
{
  "hex": "#271d28",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 40
  },
  "hsl": {
    "h": 294.545,
    "s": 15.942,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24747,
    "c": 0.02513,
    "h": 323.3
  },
  "luminance": 0.01463
}

Semantic roles & 50–950 ramp

primary
#271D28
secondary
#495947
accent
#B96F76
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#050305
muted
#797879

Preview Lab

Preview with #271D28

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

Preview Lab → · Contrast checker → · Palette generator →

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