#271A36#271A36

#271A36 is a very dark, muted violet. Relative luminance 0.014; OKLCH L 24.9% C 0.054 H 304.2°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#271A36
RGBrgb(39, 26, 54)
HSLhsl(268, 35%, 16%)
HSVhsv(268, 52%, 21%)
CMYKcmyk(27.8%, 51.9%, 0%, 78.8%)
CIE-LABlab(12.20, 13.48, -15.97)
CIE-LCHlch(12.20, 20.90, 310.15°)
OKLaboklab(24.86% 0.0303 -0.0446)
OKLCHoklch(24.86% 0.054 304.2)
XYZxyz(1.8718, 1.4365, 3.6680)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A36 #29361A
analogous
#1A1B36 #271A36 #351A36
triadic
#271A36 #36271A #1A3627
tetradic
#271A36 #361A1B #29361A #1A3635
square
#271A36 #361A1B #29361A #1A3635
split-complementary
#271A36 #36351A #1B361A
monochromatic
#0F0A15 #0F0A15 #271A36 #452E5F #634289

Accessibility & contrast

On white

16.31
#271A36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A36
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A36#FFFFFF#000000##FFFFFF
##271A361.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132037
Deuteranopia (green-blind)
#162035
Tritanopia (blue-blind)
#251F25
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271a36;
/* rgb */ color: rgb(39, 26, 54);
/* oklch */ color: oklch(24.9% 0.054 304.2);
Tailwind
colors: {
  custom: {
    50: '#62566d',
    500: '#271a36',
    950: '#000000',
  },
}
SCSS
$custom: #271a36;
$custom-light: #62566d;
$custom-dark: #000000;
JSON
{
  "hex": "#271a36",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 54
  },
  "hsl": {
    "h": 267.857,
    "s": 35,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24856,
    "c": 0.05389,
    "h": 304.2
  },
  "luminance": 0.01436
}

Semantic roles & 50–950 ramp

primary
#271A36
secondary
#576B41
accent
#CB5D98
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050307
muted
#79787A

Preview Lab

Preview with #271A36

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

Preview Lab → · Contrast checker → · Palette generator →

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