#271F2E#271F2E

#271F2E is a dark, muted violet. Relative luminance 0.016; OKLCH L 25.5% C 0.030 H 308.6°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#271F2E
RGBrgb(39, 31, 46)
HSLhsl(272, 19%, 15%)
HSVhsv(272, 33%, 18%)
CMYKcmyk(15.2%, 32.6%, 0%, 82%)
CIE-LABlab(13.28, 7.54, -8.54)
CIE-LCHlch(13.28, 11.39, 311.45°)
OKLaboklab(25.54% 0.0186 -0.0233)
OKLCHoklch(25.54% 0.03 308.6)
XYZxyz(1.8197, 1.6086, 2.7989)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F2E #262E1F
analogous
#1F1F2E #271F2E #2E1F2E
triadic
#271F2E #2E271F #1F2E27
tetradic
#271F2E #2E1F1F #262E1F #1F2E2E
square
#271F2E #2E1F1F #262E1F #1F2E2E
split-complementary
#271F2E #2E2E1F #1F2E1F
monochromatic
#0F0C12 #0F0C12 #271F2E #463853 #655077

Accessibility & contrast

On white

15.89
#271F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#271F2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F2E
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F2E#FFFFFF#000000##FFFFFF
##271F2E1.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C222F
Deuteranopia (green-blind)
#1E222E
Tritanopia (blue-blind)
#262124
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #271f2e;
/* rgb */ color: rgb(39, 31, 46);
/* oklch */ color: oklch(25.5% 0.030 308.6);
Tailwind
colors: {
  custom: {
    50: '#615a66',
    500: '#271f2e',
    950: '#000000',
  },
}
SCSS
$custom: #271f2e;
$custom-light: #615a66;
$custom-dark: #000000;
JSON
{
  "hex": "#271f2e",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 46
  },
  "hsl": {
    "h": 272,
    "s": 19.481,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25537,
    "c": 0.02985,
    "h": 308.6
  },
  "luminance": 0.01609
}

Semantic roles & 50–950 ramp

primary
#271F2E
secondary
#546049
accent
#BC6C91
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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