#271F2D#271F2D

#271F2D is a dark, muted violet. Relative luminance 0.016; OKLCH L 25.5% C 0.028 H 310.3°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#271F2D
RGBrgb(39, 31, 45)
HSLhsl(274, 18%, 15%)
HSVhsv(274, 31%, 18%)
CMYKcmyk(13.3%, 31.1%, 0%, 82.4%)
CIE-LABlab(13.23, 7.27, -7.89)
CIE-LCHlch(13.23, 10.73, 312.65°)
OKLaboklab(25.49% 0.0183 -0.0215)
OKLCHoklch(25.49% 0.028 310.3)
XYZxyz(1.8003, 1.6008, 2.6963)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F2D #252D1F
analogous
#201F2D #271F2D #2D1F2C
triadic
#271F2D #2D271F #1F2D27
tetradic
#271F2D #2D201F #252D1F #1F2C2D
square
#271F2D #2D201F #252D1F #1F2C2D
split-complementary
#271F2D #2C2D1F #1F2D20
monochromatic
#100C12 #100C12 #271F2D #463851 #665175

Accessibility & contrast

On white

15.91
#271F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F2D
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F2D#FFFFFF#000000##FFFFFF
##271F2D1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D222E
Deuteranopia (green-blind)
#1E222D
Tritanopia (blue-blind)
#262124
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #271f2d;
/* rgb */ color: rgb(39, 31, 45);
/* oklch */ color: oklch(25.5% 0.028 310.3);
Tailwind
colors: {
  custom: {
    50: '#615a65',
    500: '#271f2d',
    950: '#000000',
  },
}
SCSS
$custom: #271f2d;
$custom-light: #615a65;
$custom-dark: #000000;
JSON
{
  "hex": "#271f2d",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 45
  },
  "hsl": {
    "h": 274.286,
    "s": 18.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25485,
    "c": 0.0282,
    "h": 310.3
  },
  "luminance": 0.01601
}

Semantic roles & 50–950 ramp

primary
#271F2D
secondary
#525F49
accent
#BB6D8E
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050305
muted
#79787A

Preview Lab

Preview with #271F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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