#271F2B#271F2B

#271F2B is a dark, muted purple. Relative luminance 0.016; OKLCH L 25.4% C 0.025 H 314.4°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#271F2B
RGBrgb(39, 31, 43)
HSLhsl(280, 16%, 15%)
HSVhsv(280, 28%, 17%)
CMYKcmyk(9.3%, 27.9%, 0%, 83.1%)
CIE-LABlab(13.14, 6.73, -6.59)
CIE-LCHlch(13.14, 9.42, 315.63°)
OKLaboklab(25.38% 0.0174 -0.0178)
OKLCHoklch(25.38% 0.025 314.4)
XYZxyz(1.7627, 1.5857, 2.4983)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F2B #232B1F
analogous
#211F2B #271F2B #2B1F29
triadic
#271F2B #2B271F #1F2B27
tetradic
#271F2B #2B211F #232B1F #1F292B
square
#271F2B #2B211F #232B1F #1F292B
split-complementary
#271F2B #292B1F #1F2B21
monochromatic
#100D12 #100D12 #271F2B #47394F #685272

Accessibility & contrast

On white

15.94
#271F2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#271F2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F2B
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F2B#FFFFFF#000000##FFFFFF
##271F2B1.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D212C
Deuteranopia (green-blind)
#1F222B
Tritanopia (blue-blind)
#272023
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #271f2b;
/* rgb */ color: rgb(39, 31, 43);
/* oklch */ color: oklch(25.4% 0.025 314.4);
Tailwind
colors: {
  custom: {
    50: '#615a64',
    500: '#271f2b',
    950: '#000000',
  },
}
SCSS
$custom: #271f2b;
$custom-light: #615a64;
$custom-dark: #000000;
JSON
{
  "hex": "#271f2b",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 43
  },
  "hsl": {
    "h": 280,
    "s": 16.216,
    "l": 14.51
  },
  "oklch": {
    "l": 0.25384,
    "c": 0.02495,
    "h": 314.4
  },
  "luminance": 0.01586
}

Semantic roles & 50–950 ramp

primary
#271F2B
secondary
#505C49
accent
#B96F88
background
#F5F5F5
surface
#E9E9EA
border
#C5C5C6
text
#050305
muted
#797879

Preview Lab

Preview with #271F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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