#271B32#271B32

#271B32 is a very dark, muted violet. Relative luminance 0.014; OKLCH L 24.8% C 0.045 H 307.4°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#271B32
RGBrgb(39, 27, 50)
HSLhsl(271, 30%, 15%)
HSVhsv(271, 46%, 20%)
CMYKcmyk(22%, 46%, 0%, 80.4%)
CIE-LABlab(12.26, 11.58, -13.01)
CIE-LCHlch(12.26, 17.41, 311.68°)
OKLaboklab(24.82% 0.0275 -0.036)
OKLCHoklch(24.82% 0.045 307.4)
XYZxyz(1.8042, 1.4455, 3.2010)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B32 #26321B
analogous
#1B1B32 #271B32 #321B31
triadic
#271B32 #32271B #1B3227
tetradic
#271B32 #321B1B #26321B #1B3132
square
#271B32 #321B1B #26321B #1B3132
split-complementary
#271B32 #31321B #1B321B
monochromatic
#0F0B14 #0F0B14 #271B32 #46305A #654681

Accessibility & contrast

On white

16.29
#271B32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#271B32 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B32
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B32#FFFFFF#000000##FFFFFF
##271B321.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162033
Deuteranopia (green-blind)
#192031
Tritanopia (blue-blind)
#251E24
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271b32;
/* rgb */ color: rgb(39, 27, 50);
/* oklch */ color: oklch(24.8% 0.045 307.4);
Tailwind
colors: {
  custom: {
    50: '#61576a',
    500: '#271b32',
    950: '#000000',
  },
}
SCSS
$custom: #271b32;
$custom-light: #61576a;
$custom-dark: #000000;
JSON
{
  "hex": "#271b32",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 50
  },
  "hsl": {
    "h": 271.304,
    "s": 29.87,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24824,
    "c": 0.04532,
    "h": 307.4
  },
  "luminance": 0.01445
}

Semantic roles & 50–950 ramp

primary
#271B32
secondary
#546643
accent
#C66292
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271B32

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

Preview Lab → · Contrast checker → · Palette generator →

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