#271E29#271E29

#271E29 is a dark, muted purple. Relative luminance 0.015; OKLCH L 25.0% C 0.024 H 320.1°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#271E29
RGBrgb(39, 30, 41)
HSLhsl(289, 15%, 14%)
HSVhsv(289, 27%, 16%)
CMYKcmyk(4.9%, 26.8%, 0%, 83.9%)
CIE-LABlab(12.73, 6.93, -5.75)
CIE-LCHlch(12.73, 9.01, 320.32°)
OKLaboklab(25.04% 0.0186 -0.0155)
OKLCHoklch(25.04% 0.024 320.1)
XYZxyz(1.7012, 1.5200, 2.3012)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E29 #20291E
analogous
#221E29 #271E29 #291E26
triadic
#271E29 #29271E #1E2927
tetradic
#271E29 #29221E #20291E #1E2629
square
#271E29 #29221E #20291E #1E2629
split-complementary
#271E29 #26291E #1E2922
monochromatic
#110D12 #110D12 #271E29 #49384C #6A5270

Accessibility & contrast

On white

16.10
#271E29 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E29
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E29#FFFFFF#000000##FFFFFF
##271E291.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2029
Deuteranopia (green-blind)
#1F2129
Tritanopia (blue-blind)
#271F22
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271e29;
/* rgb */ color: rgb(39, 30, 41);
/* oklch */ color: oklch(25.0% 0.024 320.1);
Tailwind
colors: {
  custom: {
    50: '#615962',
    500: '#271e29',
    950: '#000000',
  },
}
SCSS
$custom: #271e29;
$custom-light: #615962;
$custom-dark: #000000;
JSON
{
  "hex": "#271e29",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 41
  },
  "hsl": {
    "h": 289.091,
    "s": 15.493,
    "l": 13.922
  },
  "oklch": {
    "l": 0.2504,
    "c": 0.02421,
    "h": 320.1
  },
  "luminance": 0.0152
}

Semantic roles & 50–950 ramp

primary
#271E29
secondary
#4C5A49
accent
#B8707D
background
#F5F5F5
surface
#E9E9EA
border
#C5C5C6
text
#050305
muted
#797879

Preview Lab

Preview with #271E29

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

Preview Lab → · Contrast checker → · Palette generator →

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