#271B2F#271B2F

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

Color values

HEX#271B2F
RGBrgb(39, 27, 47)
HSLhsl(276, 27%, 15%)
HSVhsv(276, 43%, 18%)
CMYKcmyk(17%, 42.6%, 0%, 81.6%)
CIE-LABlab(12.09, 10.73, -11.09)
CIE-LCHlch(12.09, 15.43, 314.04°)
OKLaboklab(24.65% 0.0266 -0.0305)
OKLCHoklch(24.65% 0.041 311.1)
XYZxyz(1.7416, 1.4205, 2.8712)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B2F #232F1B
analogous
#1D1B2F #271B2F #2F1B2D
triadic
#271B2F #2F271B #1B2F27
tetradic
#271B2F #2F1D1B #232F1B #1B2D2F
square
#271B2F #2F1D1B #232F1B #1B2D2F
split-complementary
#271B2F #2D2F1B #1B2F1D
monochromatic
#100B13 #100B13 #271B2F #473156 #68487D

Accessibility & contrast

On white

16.36
#271B2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#271B2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B2F
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B2F#FFFFFF#000000##FFFFFF
##271B2F1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171F30
Deuteranopia (green-blind)
#1A202E
Tritanopia (blue-blind)
#261E22
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271b2f;
/* rgb */ color: rgb(39, 27, 47);
/* oklch */ color: oklch(24.6% 0.041 311.1);
Tailwind
colors: {
  custom: {
    50: '#615767',
    500: '#271b2f',
    950: '#000000',
  },
}
SCSS
$custom: #271b2f;
$custom-light: #615767;
$custom-dark: #000000;
JSON
{
  "hex": "#271b2f",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 47
  },
  "hsl": {
    "h": 276,
    "s": 27.027,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24645,
    "c": 0.04053,
    "h": 311.1
  },
  "luminance": 0.0142
}

Semantic roles & 50–950 ramp

primary
#271B2F
secondary
#506343
accent
#C3648A
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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