#271E2F#271E2F

#271E2F is a dark, muted violet. Relative luminance 0.016; OKLCH L 25.3% C 0.034 H 308.3°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#271E2F
RGBrgb(39, 30, 47)
HSLhsl(272, 22%, 15%)
HSVhsv(272, 36%, 18%)
CMYKcmyk(17%, 36.2%, 0%, 81.6%)
CIE-LABlab(13.02, 8.55, -9.67)
CIE-LCHlch(13.02, 12.91, 311.49°)
OKLaboklab(25.35% 0.0209 -0.0265)
OKLCHoklch(25.35% 0.034 308.3)
XYZxyz(1.8140, 1.5651, 2.8953)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E2F #262F1E
analogous
#1E1E2F #271E2F #2F1E2E
triadic
#271E2F #2F271E #1E2F27
tetradic
#271E2F #2F1E1E #262F1E #1E2E2F
square
#271E2F #2F1E1E #262F1E #1E2E2F
split-complementary
#271E2F #2E2F1E #1E2F1E
monochromatic
#0F0C13 #0F0C13 #271E2F #463654 #654E7A

Accessibility & contrast

On white

15.99
#271E2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#271E2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E2F
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E2F#FFFFFF#000000##FFFFFF
##271E2F1.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271e2f;
/* rgb */ color: rgb(39, 30, 47);
/* oklch */ color: oklch(25.3% 0.034 308.3);
Tailwind
colors: {
  custom: {
    50: '#615967',
    500: '#271e2f',
    950: '#000000',
  },
}
SCSS
$custom: #271e2f;
$custom-light: #615967;
$custom-dark: #000000;
JSON
{
  "hex": "#271e2f",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 47
  },
  "hsl": {
    "h": 271.765,
    "s": 22.078,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25349,
    "c": 0.03376,
    "h": 308.3
  },
  "luminance": 0.01565
}

Semantic roles & 50–950 ramp

primary
#271E2F
secondary
#546147
accent
#BF6991
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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