#271E28#271E28

#271E28 is a very dark, muted purple. Relative luminance 0.015; OKLCH L 25.0% C 0.023 H 323.0°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#271E28
RGBrgb(39, 30, 40)
HSLhsl(294, 14%, 14%)
HSVhsv(294, 25%, 16%)
CMYKcmyk(2.5%, 25%, 0%, 84.3%)
CIE-LABlab(12.69, 6.68, -5.09)
CIE-LCHlch(12.69, 8.40, 322.67°)
OKLaboklab(24.99% 0.0182 -0.0137)
OKLCHoklch(24.99% 0.023 323)
XYZxyz(1.6839, 1.5131, 2.2104)
Luminance0.0151 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E28 #1F281E
analogous
#221E28 #271E28 #281E24
triadic
#271E28 #28271E #1E2827
tetradic
#271E28 #28221E #1F281E #1E2428
square
#271E28 #28221E #1F281E #1E2428
split-complementary
#271E28 #24281E #1E2822
monochromatic
#110D11 #110D11 #271E28 #49384B #6B526E

Accessibility & contrast

On white

16.12
#271E28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#271E28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E28
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E28#FFFFFF#000000##FFFFFF
##271E281.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2028
Deuteranopia (green-blind)
#1F2128
Tritanopia (blue-blind)
#271F21
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271e28;
/* rgb */ color: rgb(39, 30, 40);
/* oklch */ color: oklch(25.0% 0.023 323.0);
Tailwind
colors: {
  custom: {
    50: '#615961',
    500: '#271e28',
    950: '#000000',
  },
}
SCSS
$custom: #271e28;
$custom-light: #615961;
$custom-dark: #000000;
JSON
{
  "hex": "#271e28",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 40
  },
  "hsl": {
    "h": 294,
    "s": 14.286,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24992,
    "c": 0.02273,
    "h": 323
  },
  "luminance": 0.01513
}

Semantic roles & 50–950 ramp

primary
#271E28
secondary
#4A5949
accent
#B77178
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#050305
muted
#797879

Preview Lab

Preview with #271E28

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

Preview Lab → · Contrast checker → · Palette generator →

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