#271A33#271A33

#271A33 is a very dark, muted violet. Relative luminance 0.014; OKLCH L 24.7% C 0.049 H 307.1°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#271A33
RGBrgb(39, 26, 51)
HSLhsl(271, 32%, 15%)
HSVhsv(271, 49%, 20%)
CMYKcmyk(23.5%, 49%, 0%, 80%)
CIE-LABlab(12.02, 12.59, -14.10)
CIE-LCHlch(12.02, 18.90, 311.76°)
OKLaboklab(24.66% 0.0296 -0.0392)
OKLCHoklch(24.66% 0.049 307.1)
XYZxyz(1.8035, 1.4092, 3.3083)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A33 #26331A
analogous
#1A1A33 #271A33 #331A33
triadic
#271A33 #33271A #1A3327
tetradic
#271A33 #331A1A #26331A #1A3333
square
#271A33 #331A1A #26331A #1A3333
split-complementary
#271A33 #33331A #1A331A
monochromatic
#0F0A14 #0F0A14 #271A33 #462F5C #654384

Accessibility & contrast

On white

16.38
#271A33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#271A33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A33
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A33#FFFFFF#000000##FFFFFF
##271A331.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141F34
Deuteranopia (green-blind)
#172032
Tritanopia (blue-blind)
#251E24
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271a33;
/* rgb */ color: rgb(39, 26, 51);
/* oklch */ color: oklch(24.7% 0.049 307.1);
Tailwind
colors: {
  custom: {
    50: '#61566a',
    500: '#271a33',
    950: '#000000',
  },
}
SCSS
$custom: #271a33;
$custom-light: #61566a;
$custom-dark: #000000;
JSON
{
  "hex": "#271a33",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 51
  },
  "hsl": {
    "h": 271.2,
    "s": 32.468,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24662,
    "c": 0.0491,
    "h": 307.1
  },
  "luminance": 0.01409
}

Semantic roles & 50–950 ramp

primary
#271A33
secondary
#546841
accent
#C95F92
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271A33

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

Preview Lab → · Contrast checker → · Palette generator →

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