#271D2E#271D2E

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

Color values

HEX#271D2E
RGBrgb(39, 29, 46)
HSLhsl(275, 23%, 15%)
HSVhsv(275, 37%, 18%)
CMYKcmyk(15.2%, 37%, 0%, 82%)
CIE-LABlab(12.65, 9.00, -9.50)
CIE-LCHlch(12.65, 13.09, 313.44°)
OKLaboklab(25.06% 0.0225 -0.026)
OKLCHoklch(25.06% 0.034 310.8)
XYZxyz(1.7691, 1.5073, 2.7820)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D2E #242E1D
analogous
#1F1D2E #271D2E #2E1D2D
triadic
#271D2E #2E271D #1D2E27
tetradic
#271D2E #2E1F1D #242E1D #1D2D2E
square
#271D2E #2E1F1D #242E1D #1D2D2E
split-complementary
#271D2E #2D2E1D #1D2E1F
monochromatic
#100C13 #100C13 #271D2E #473554 #674C79

Accessibility & contrast

On white

16.14
#271D2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D2E
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D2E#FFFFFF#000000##FFFFFF
##271D2E1.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A202F
Deuteranopia (green-blind)
#1C212D
Tritanopia (blue-blind)
#261F23
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271d2e;
/* rgb */ color: rgb(39, 29, 46);
/* oklch */ color: oklch(25.1% 0.034 310.8);
Tailwind
colors: {
  custom: {
    50: '#615966',
    500: '#271d2e',
    950: '#000000',
  },
}
SCSS
$custom: #271d2e;
$custom-light: #615966;
$custom-dark: #000000;
JSON
{
  "hex": "#271d2e",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 46
  },
  "hsl": {
    "h": 275.294,
    "s": 22.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25056,
    "c": 0.03439,
    "h": 310.8
  },
  "luminance": 0.01507
}

Semantic roles & 50–950 ramp

primary
#271D2E
secondary
#516146
accent
#BF698C
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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