#271C2F#271C2F

#271C2F is a very dark, muted violet. Relative luminance 0.015; OKLCH L 24.9% C 0.038 H 310.3°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#271C2F
RGBrgb(39, 28, 47)
HSLhsl(275, 25%, 15%)
HSVhsv(275, 40%, 18%)
CMYKcmyk(17%, 40.4%, 0%, 81.6%)
CIE-LABlab(12.40, 10.00, -10.62)
CIE-LCHlch(12.40, 14.59, 313.28°)
OKLaboklab(24.88% 0.0247 -0.0292)
OKLCHoklch(24.88% 0.038 310.3)
XYZxyz(1.7650, 1.4671, 2.8790)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C2F #242F1C
analogous
#1E1C2F #271C2F #2F1C2E
triadic
#271C2F #2F271C #1C2F27
tetradic
#271C2F #2F1E1C #242F1C #1C2E2F
square
#271C2F #2F1E1C #242F1C #1C2E2F
split-complementary
#271C2F #2E2F1C #1C2F1E
monochromatic
#100B13 #100B13 #271C2F #473355 #674A7C

Accessibility & contrast

On white

16.24
#271C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C2F
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C2F#FFFFFF#000000##FFFFFF
##271C2F1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192030
Deuteranopia (green-blind)
#1B212E
Tritanopia (blue-blind)
#261F23
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271c2f;
/* rgb */ color: rgb(39, 28, 47);
/* oklch */ color: oklch(24.9% 0.038 310.3);
Tailwind
colors: {
  custom: {
    50: '#615867',
    500: '#271c2f',
    950: '#000000',
  },
}
SCSS
$custom: #271c2f;
$custom-light: #615867;
$custom-dark: #000000;
JSON
{
  "hex": "#271c2f",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 47
  },
  "hsl": {
    "h": 274.737,
    "s": 25.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24877,
    "c": 0.03827,
    "h": 310.3
  },
  "luminance": 0.01467
}

Semantic roles & 50–950 ramp

primary
#271C2F
secondary
#516245
accent
#C2668D
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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