#271D36#271D36

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

Color values

HEX#271D36
RGBrgb(39, 29, 54)
HSLhsl(264, 30%, 16%)
HSVhsv(264, 46%, 21%)
CMYKcmyk(27.8%, 46.3%, 0%, 78.8%)
CIE-LABlab(13.09, 11.32, -14.58)
CIE-LCHlch(13.09, 18.46, 307.81°)
OKLaboklab(25.53% 0.0249 -0.0406)
OKLCHoklch(25.53% 0.048 301.5)
XYZxyz(1.9418, 1.5764, 3.6913)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D36 #2C361D
analogous
#1D2036 #271D36 #341D36
triadic
#271D36 #36271D #1D3627
tetradic
#271D36 #361D20 #2C361D #1D3634
square
#271D36 #361D20 #2C361D #1D3634
split-complementary
#271D36 #36341D #20361D
monochromatic
#0E0B14 #0E0B14 #271D36 #44325E #614886

Accessibility & contrast

On white

15.97
#271D36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D36
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D36#FFFFFF#000000##FFFFFF
##271D361.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172237
Deuteranopia (green-blind)
#192235
Tritanopia (blue-blind)
#242126
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #271d36;
/* rgb */ color: rgb(39, 29, 54);
/* oklch */ color: oklch(25.5% 0.048 301.5);
Tailwind
colors: {
  custom: {
    50: '#62596d',
    500: '#271d36',
    950: '#000000',
  },
}
SCSS
$custom: #271d36;
$custom-light: #62596d;
$custom-dark: #000000;
JSON
{
  "hex": "#271d36",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 54
  },
  "hsl": {
    "h": 264,
    "s": 30.12,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25526,
    "c": 0.0476,
    "h": 301.5
  },
  "luminance": 0.01576
}

Semantic roles & 50–950 ramp

primary
#271D36
secondary
#5B6A45
accent
#C6619E
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050307
muted
#79787A

Preview Lab

Preview with #271D36

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

Preview Lab → · Contrast checker → · Palette generator →

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