#271A2C#271A2C

#271A2C is a very dark, muted purple. Relative luminance 0.014; OKLCH L 24.2% C 0.038 H 316.3°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#271A2C
RGBrgb(39, 26, 44)
HSLhsl(283, 26%, 14%)
HSVhsv(283, 41%, 17%)
CMYKcmyk(11.4%, 40.9%, 0%, 82.7%)
CIE-LABlab(11.63, 10.63, -9.62)
CIE-LCHlch(11.63, 14.33, 317.85°)
OKLaboklab(24.25% 0.0276 -0.0263)
OKLCHoklch(24.25% 0.038 316.3)
XYZxyz(1.6606, 1.3520, 2.5559)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A2C #1F2C1A
analogous
#1E1A2C #271A2C #2C1A28
triadic
#271A2C #2C271A #1A2C27
tetradic
#271A2C #2C1E1A #1F2C1A #1A282C
square
#271A2C #2C1E1A #1F2C1A #1A282C
split-complementary
#271A2C #282C1A #1A2C1E
monochromatic
#110B13 #110B13 #271A2C #493152 #6B4779

Accessibility & contrast

On white

16.53
#271A2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#271A2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A2C
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A2C#FFFFFF#000000##FFFFFF
##271A2C1.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171E2D
Deuteranopia (green-blind)
#1A1F2B
Tritanopia (blue-blind)
#271C21
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #271a2c;
/* rgb */ color: rgb(39, 26, 44);
/* oklch */ color: oklch(24.2% 0.038 316.3);
Tailwind
colors: {
  custom: {
    50: '#615665',
    500: '#271a2c',
    950: '#000000',
  },
}
SCSS
$custom: #271a2c;
$custom-light: #615665;
$custom-dark: #000000;
JSON
{
  "hex": "#271a2c",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 44
  },
  "hsl": {
    "h": 283.333,
    "s": 25.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24245,
    "c": 0.03814,
    "h": 316.3
  },
  "luminance": 0.01352
}

Semantic roles & 50–950 ramp

primary
#271A2C
secondary
#4A5F42
accent
#C2667F
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050305
muted
#79787A

Preview Lab

Preview with #271A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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