#271F2C#271F2C

#271F2C is a dark, muted violet. Relative luminance 0.016; OKLCH L 25.4% C 0.027 H 312.2°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#271F2C
RGBrgb(39, 31, 44)
HSLhsl(277, 17%, 15%)
HSVhsv(277, 30%, 17%)
CMYKcmyk(11.4%, 29.5%, 0%, 82.7%)
CIE-LABlab(13.19, 7.00, -7.24)
CIE-LCHlch(13.19, 10.07, 314.02°)
OKLaboklab(25.43% 0.0179 -0.0197)
OKLCHoklch(25.43% 0.027 312.2)
XYZxyz(1.7812, 1.5932, 2.5961)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F2C #242C1F
analogous
#211F2C #271F2C #2C1F2B
triadic
#271F2C #2C271F #1F2C27
tetradic
#271F2C #2C211F #242C1F #1F2B2C
square
#271F2C #2C211F #242C1F #1F2B2C
split-complementary
#271F2C #2B2C1F #1F2C21
monochromatic
#100D12 #100D12 #271F2C #473850 #675274

Accessibility & contrast

On white

15.93
#271F2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F2C
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F2C#FFFFFF#000000##FFFFFF
##271F2C1.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D212D
Deuteranopia (green-blind)
#1F222C
Tritanopia (blue-blind)
#272124
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #271f2c;
/* rgb */ color: rgb(39, 31, 44);
/* oklch */ color: oklch(25.4% 0.027 312.2);
Tailwind
colors: {
  custom: {
    50: '#615a65',
    500: '#271f2c',
    950: '#000000',
  },
}
SCSS
$custom: #271f2c;
$custom-light: #615a65;
$custom-dark: #000000;
JSON
{
  "hex": "#271f2c",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 44
  },
  "hsl": {
    "h": 276.923,
    "s": 17.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25434,
    "c": 0.02656,
    "h": 312.2
  },
  "luminance": 0.01593
}

Semantic roles & 50–950 ramp

primary
#271F2C
secondary
#515E49
accent
#BA6E8B
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050305
muted
#79787A

Preview Lab

Preview with #271F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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