#271E2D#271E2D

#271E2D is a dark, muted violet. Relative luminance 0.015; OKLCH L 25.2% C 0.030 H 311.4°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#271E2D
RGBrgb(39, 30, 45)
HSLhsl(276, 20%, 15%)
HSVhsv(276, 33%, 18%)
CMYKcmyk(13.3%, 33.3%, 0%, 82.4%)
CIE-LABlab(12.92, 7.99, -8.37)
CIE-LCHlch(12.92, 11.58, 313.67°)
OKLaboklab(25.24% 0.0202 -0.0228)
OKLCHoklch(25.24% 0.03 311.4)
XYZxyz(1.7745, 1.5494, 2.6877)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E2D #242D1E
analogous
#201E2D #271E2D #2D1E2C
triadic
#271E2D #2D271E #1E2D27
tetradic
#271E2D #2D201E #242D1E #1E2C2D
square
#271E2D #2D201E #242D1E #1E2C2D
split-complementary
#271E2D #2C2D1E #1E2D20
monochromatic
#100C12 #100C12 #271E2D #473652 #674F76

Accessibility & contrast

On white

16.03
#271E2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#271E2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E2D
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E2D#FFFFFF#000000##FFFFFF
##271E2D1.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C212E
Deuteranopia (green-blind)
#1E222D
Tritanopia (blue-blind)
#262023
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271e2d;
/* rgb */ color: rgb(39, 30, 45);
/* oklch */ color: oklch(25.2% 0.030 311.4);
Tailwind
colors: {
  custom: {
    50: '#615965',
    500: '#271e2d',
    950: '#000000',
  },
}
SCSS
$custom: #271e2d;
$custom-light: #615965;
$custom-dark: #000000;
JSON
{
  "hex": "#271e2d",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 45
  },
  "hsl": {
    "h": 276,
    "s": 20,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25242,
    "c": 0.03049,
    "h": 311.4
  },
  "luminance": 0.01549
}

Semantic roles & 50–950 ramp

primary
#271E2D
secondary
#515F48
accent
#BD6B8C
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050305
muted
#79787A

Preview Lab

Preview with #271E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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