#271F32#271F32

#271F32 is a dark, muted violet. Relative luminance 0.016; OKLCH L 25.8% C 0.037 H 303.2°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#271F32
RGBrgb(39, 31, 50)
HSLhsl(265, 23%, 16%)
HSVhsv(265, 38%, 20%)
CMYKcmyk(22%, 38%, 0%, 80.4%)
CIE-LABlab(13.48, 8.68, -11.11)
CIE-LCHlch(13.48, 14.09, 308.01°)
OKLaboklab(25.76% 0.0201 -0.0306)
OKLCHoklch(25.76% 0.037 303.2)
XYZxyz(1.9023, 1.6416, 3.2336)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F32 #2A321F
analogous
#1F2032 #271F32 #301F32
triadic
#271F32 #32271F #1F3227
tetradic
#271F32 #321F20 #2A321F #1F3230
square
#271F32 #321F20 #2A321F #1F3230
split-complementary
#271F32 #32301F #20321F
monochromatic
#0F0C13 #0F0C13 #271F32 #443658 #624E7E

Accessibility & contrast

On white

15.81
#271F32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#271F32 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F32
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F32#FFFFFF#000000##FFFFFF
##271F321.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2233
Deuteranopia (green-blind)
#1D2331
Tritanopia (blue-blind)
#252226
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271f32;
/* rgb */ color: rgb(39, 31, 50);
/* oklch */ color: oklch(25.8% 0.037 303.2);
Tailwind
colors: {
  custom: {
    50: '#615a6a',
    500: '#271f32',
    950: '#000000',
  },
}
SCSS
$custom: #271f32;
$custom-light: #615a6a;
$custom-dark: #000000;
JSON
{
  "hex": "#271f32",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 50
  },
  "hsl": {
    "h": 265.263,
    "s": 23.457,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25755,
    "c": 0.03659,
    "h": 303.2
  },
  "luminance": 0.01642
}

Semantic roles & 50–950 ramp

primary
#271F32
secondary
#596548
accent
#C0689B
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271F32

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

Preview Lab → · Contrast checker → · Palette generator →

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