#271F26#271F26

#271F26 is a dark, near-neutral purple. Relative luminance 0.016; OKLCH L 25.1% C 0.018 H 330.2°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#271F26
RGBrgb(39, 31, 38)
HSLhsl(308, 11%, 14%)
HSVhsv(308, 21%, 15%)
CMYKcmyk(0%, 20.5%, 2.6%, 84.7%)
CIE-LABlab(12.93, 5.45, -3.28)
CIE-LCHlch(12.93, 6.36, 328.99°)
OKLaboklab(25.15% 0.0153 -0.0087)
OKLCHoklch(25.15% 0.018 330.2)
XYZxyz(1.6765, 1.5513, 2.0445)
Luminance0.0155 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F26 #1F2720
analogous
#241F27 #271F26 #271F22
triadic
#271F26 #26271F #1F2627
tetradic
#271F26 #27241F #1F2720 #1F2227
square
#271F26 #27241F #1F2720 #1F2227
split-complementary
#271F26 #22271F #1F2724
monochromatic
#110E11 #110E11 #271F26 #493A47 #6B5568

Accessibility & contrast

On white

16.03
#271F26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F26
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F26#FFFFFF#000000##FFFFFF
##271F261.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2126
Deuteranopia (green-blind)
#212226
Tritanopia (blue-blind)
#281F21
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271f26;
/* rgb */ color: rgb(39, 31, 38);
/* oklch */ color: oklch(25.1% 0.018 330.2);
Tailwind
colors: {
  custom: {
    50: '#615a60',
    500: '#271f26',
    950: '#000000',
  },
}
SCSS
$custom: #271f26;
$custom-light: #615a60;
$custom-dark: #000000;
JSON
{
  "hex": "#271f26",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 38
  },
  "hsl": {
    "h": 307.5,
    "s": 11.429,
    "l": 13.725
  },
  "oklch": {
    "l": 0.25149,
    "c": 0.01757,
    "h": 330.2
  },
  "luminance": 0.01551
}

Semantic roles & 50–950 ramp

primary
#271F26
secondary
#4A574C
accent
#B47C73
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#050304
muted
#797879

Preview Lab

Preview with #271F26

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

Preview Lab → · Contrast checker → · Palette generator →

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