#271B2E#271B2E

#271B2E is a very dark, muted violet. Relative luminance 0.014; OKLCH L 24.6% C 0.039 H 312.5°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#271B2E
RGBrgb(39, 27, 46)
HSLhsl(278, 26%, 14%)
HSVhsv(278, 41%, 18%)
CMYKcmyk(15.2%, 41.3%, 0%, 82%)
CIE-LABlab(12.04, 10.45, -10.45)
CIE-LCHlch(12.04, 14.78, 315.00°)
OKLaboklab(24.59% 0.0263 -0.0287)
OKLCHoklch(24.59% 0.039 312.5)
XYZxyz(1.7217, 1.4125, 2.7662)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B2E #222E1B
analogous
#1E1B2E #271B2E #2E1B2C
triadic
#271B2E #2E271B #1B2E27
tetradic
#271B2E #2E1E1B #222E1B #1B2C2E
square
#271B2E #2E1E1B #222E1B #1B2C2E
split-complementary
#271B2E #2C2E1B #1B2E1E
monochromatic
#100B13 #100B13 #271B2E #483255 #68487B

Accessibility & contrast

On white

16.38
#271B2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#271B2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B2E
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B2E#FFFFFF#000000##FFFFFF
##271B2E1.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181F2F
Deuteranopia (green-blind)
#1B202D
Tritanopia (blue-blind)
#261E22
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271b2e;
/* rgb */ color: rgb(39, 27, 46);
/* oklch */ color: oklch(24.6% 0.039 312.5);
Tailwind
colors: {
  custom: {
    50: '#615766',
    500: '#271b2e',
    950: '#000000',
  },
}
SCSS
$custom: #271b2e;
$custom-light: #615766;
$custom-dark: #000000;
JSON
{
  "hex": "#271b2e",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 46
  },
  "hsl": {
    "h": 277.895,
    "s": 26.027,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24588,
    "c": 0.03894,
    "h": 312.5
  },
  "luminance": 0.01412
}

Semantic roles & 50–950 ramp

primary
#271B2E
secondary
#4E6143
accent
#C26588
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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