#271D2F#271D2F

#271D2F is a dark, muted violet. Relative luminance 0.015; OKLCH L 25.1% C 0.036 H 309.3°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#271D2F
RGBrgb(39, 29, 47)
HSLhsl(273, 24%, 15%)
HSVhsv(273, 38%, 18%)
CMYKcmyk(17%, 38.3%, 0%, 81.6%)
CIE-LABlab(12.71, 9.28, -10.15)
CIE-LCHlch(12.71, 13.75, 312.43°)
OKLaboklab(25.11% 0.0228 -0.0279)
OKLCHoklch(25.11% 0.036 309.3)
XYZxyz(1.7891, 1.5153, 2.8870)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D2F #252F1D
analogous
#1E1D2F #271D2F #2F1D2E
triadic
#271D2F #2F271D #1D2F27
tetradic
#271D2F #2F1E1D #252F1D #1D2E2F
square
#271D2F #2F1E1D #252F1D #1D2E2F
split-complementary
#271D2F #2E2F1D #1D2F1E
monochromatic
#100C13 #100C13 #271D2F #463455 #664C7B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##271D2F#FFFFFF#000000##FFFFFF
##271D2F1.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)
#1A2030
Deuteranopia (green-blind)
#1C212E
Tritanopia (blue-blind)
#261F24
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271d2f;
/* rgb */ color: rgb(39, 29, 47);
/* oklch */ color: oklch(25.1% 0.036 309.3);
Tailwind
colors: {
  custom: {
    50: '#615967',
    500: '#271d2f',
    950: '#000000',
  },
}
SCSS
$custom: #271d2f;
$custom-light: #615967;
$custom-dark: #000000;
JSON
{
  "hex": "#271d2f",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 47
  },
  "hsl": {
    "h": 273.333,
    "s": 23.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25111,
    "c": 0.03601,
    "h": 309.3
  },
  "luminance": 0.01515
}

Semantic roles & 50–950 ramp

primary
#271D2F
secondary
#526246
accent
#C0688F
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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