#271F2F#271F2F

#271F2F is a dark, muted violet. Relative luminance 0.016; OKLCH L 25.6% C 0.032 H 307.1°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#271F2F
RGBrgb(39, 31, 47)
HSLhsl(270, 21%, 15%)
HSVhsv(270, 34%, 18%)
CMYKcmyk(17%, 34%, 0%, 81.6%)
CIE-LABlab(13.33, 7.82, -9.18)
CIE-LCHlch(13.33, 12.06, 310.42°)
OKLaboklab(25.59% 0.019 -0.0251)
OKLCHoklch(25.59% 0.032 307.1)
XYZxyz(1.8397, 1.6166, 2.9039)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F2F #272F1F
analogous
#1F1F2F #271F2F #2F1F2F
triadic
#271F2F #2F271F #1F2F27
tetradic
#271F2F #2F1F1F #272F1F #1F2F2F
square
#271F2F #2F1F1F #272F1F #1F2F2F
split-complementary
#271F2F #2F2F1F #1F2F1F
monochromatic
#0F0C12 #0F0C12 #271F2F #463754 #645079

Accessibility & contrast

On white

15.87
#271F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F2F
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F2F#FFFFFF#000000##FFFFFF
##271F2F1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2230
Deuteranopia (green-blind)
#1E222F
Tritanopia (blue-blind)
#262125
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #271f2f;
/* rgb */ color: rgb(39, 31, 47);
/* oklch */ color: oklch(25.6% 0.032 307.1);
Tailwind
colors: {
  custom: {
    50: '#615a67',
    500: '#271f2f',
    950: '#000000',
  },
}
SCSS
$custom: #271f2f;
$custom-light: #615a67;
$custom-dark: #000000;
JSON
{
  "hex": "#271f2f",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 47
  },
  "hsl": {
    "h": 270,
    "s": 20.513,
    "l": 15.294
  },
  "oklch": {
    "l": 0.2559,
    "c": 0.03151,
    "h": 307.1
  },
  "luminance": 0.01617
}

Semantic roles & 50–950 ramp

primary
#271F2F
secondary
#556149
accent
#BD6B94
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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