#271D2A#271D2A

#271D2A is a very dark, muted purple. Relative luminance 0.015; OKLCH L 24.8% C 0.028 H 318.3°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#271D2A
RGBrgb(39, 29, 42)
HSLhsl(286, 18%, 14%)
HSVhsv(286, 31%, 16%)
CMYKcmyk(7.1%, 31%, 0%, 83.5%)
CIE-LABlab(12.46, 7.92, -6.89)
CIE-LCHlch(12.46, 10.50, 318.96°)
OKLaboklab(24.85% 0.021 -0.0187)
OKLCHoklch(24.85% 0.028 318.3)
XYZxyz(1.6939, 1.4773, 2.3859)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D2A #202A1D
analogous
#211D2A #271D2A #2A1D27
triadic
#271D2A #2A271D #1D2A27
tetradic
#271D2A #2A211D #202A1D #1D272A
square
#271D2A #2A211D #202A1D #1D272A
split-complementary
#271D2A #272A1D #1D2A21
monochromatic
#110C12 #110C12 #271D2A #49364E #6A4F72

Accessibility & contrast

On white

16.21
#271D2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D2A
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D2A#FFFFFF#000000##FFFFFF
##271D2A1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B202B
Deuteranopia (green-blind)
#1E212A
Tritanopia (blue-blind)
#271E22
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271d2a;
/* rgb */ color: rgb(39, 29, 42);
/* oklch */ color: oklch(24.8% 0.028 318.3);
Tailwind
colors: {
  custom: {
    50: '#615963',
    500: '#271d2a',
    950: '#000000',
  },
}
SCSS
$custom: #271d2a;
$custom-light: #615963;
$custom-dark: #000000;
JSON
{
  "hex": "#271d2a",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 42
  },
  "hsl": {
    "h": 286.154,
    "s": 18.31,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24846,
    "c": 0.02809,
    "h": 318.3
  },
  "luminance": 0.01477
}

Semantic roles & 50–950 ramp

primary
#271D2A
secondary
#4C5C47
accent
#BB6D7F
background
#F5F5F5
surface
#E9E9EA
border
#C5C5C6
text
#050305
muted
#797879

Preview Lab

Preview with #271D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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