#271A34#271A34

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

Color values

HEX#271A34
RGBrgb(39, 26, 52)
HSLhsl(270, 33%, 15%)
HSVhsv(270, 50%, 20%)
CMYKcmyk(25%, 50%, 0%, 79.6%)
CIE-LABlab(12.08, 12.88, -14.73)
CIE-LCHlch(12.08, 19.57, 311.18°)
OKLaboklab(24.73% 0.0298 -0.041)
OKLCHoklch(24.73% 0.051 306.1)
XYZxyz(1.8258, 1.4181, 3.4257)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A34 #27341A
analogous
#1A1A34 #271A34 #341A34
triadic
#271A34 #34271A #1A3427
tetradic
#271A34 #341A1A #27341A #1A3434
square
#271A34 #341A1A #27341A #1A3434
split-complementary
#271A34 #34341A #1A341A
monochromatic
#0F0A14 #0F0A14 #271A34 #462E5D #644386

Accessibility & contrast

On white

16.36
#271A34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A34
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A34#FFFFFF#000000##FFFFFF
##271A341.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271a34;
/* rgb */ color: rgb(39, 26, 52);
/* oklch */ color: oklch(24.7% 0.051 306.1);
Tailwind
colors: {
  custom: {
    50: '#62566b',
    500: '#271a34',
    950: '#000000',
  },
}
SCSS
$custom: #271a34;
$custom-light: #62566b;
$custom-dark: #000000;
JSON
{
  "hex": "#271a34",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 52
  },
  "hsl": {
    "h": 270,
    "s": 33.333,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24726,
    "c": 0.05069,
    "h": 306.1
  },
  "luminance": 0.01418
}

Semantic roles & 50–950 ramp

primary
#271A34
secondary
#556941
accent
#C95E94
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271A34

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

Preview Lab → · Contrast checker → · Palette generator →

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