#271A2E#271A2E

#271A2E is a very dark, muted violet. Relative luminance 0.014; OKLCH L 24.4% C 0.041 H 313.3°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#271A2E
RGBrgb(39, 26, 46)
HSLhsl(279, 28%, 14%)
HSVhsv(279, 43%, 18%)
CMYKcmyk(15.2%, 43.5%, 0%, 82%)
CIE-LABlab(11.74, 11.17, -10.92)
CIE-LCHlch(11.74, 15.62, 315.67°)
OKLaboklab(24.36% 0.0282 -0.03)
OKLCHoklch(24.36% 0.041 313.3)
XYZxyz(1.6992, 1.3674, 2.7587)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A2E #212E1A
analogous
#1D1A2E #271A2E #2E1A2B
triadic
#271A2E #2E271A #1A2E27
tetradic
#271A2E #2E1D1A #212E1A #1A2B2E
square
#271A2E #2E1D1A #212E1A #1A2B2E
split-complementary
#271A2E #2B2E1A #1A2E1D
monochromatic
#110B14 #110B14 #271A2E #483055 #69467C

Accessibility & contrast

On white

16.49
#271A2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#271A2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A2E
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A2E#FFFFFF#000000##FFFFFF
##271A2E1.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171E2F
Deuteranopia (green-blind)
#1A1F2D
Tritanopia (blue-blind)
#261D21
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #271a2e;
/* rgb */ color: rgb(39, 26, 46);
/* oklch */ color: oklch(24.4% 0.041 313.3);
Tailwind
colors: {
  custom: {
    50: '#615666',
    500: '#271a2e',
    950: '#000000',
  },
}
SCSS
$custom: #271a2e;
$custom-light: #615666;
$custom-dark: #000000;
JSON
{
  "hex": "#271a2e",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 46
  },
  "hsl": {
    "h": 279,
    "s": 27.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24359,
    "c": 0.04122,
    "h": 313.3
  },
  "luminance": 0.01367
}

Semantic roles & 50–950 ramp

primary
#271A2E
secondary
#4D6242
accent
#C46485
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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