#271A30#271A30

#271A30 is a very dark, muted violet. Relative luminance 0.014; OKLCH L 24.5% C 0.044 H 310.5°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#271A30
RGBrgb(39, 26, 48)
HSLhsl(275, 30%, 15%)
HSVhsv(275, 46%, 19%)
CMYKcmyk(18.7%, 45.8%, 0%, 81.2%)
CIE-LABlab(11.85, 11.73, -12.20)
CIE-LCHlch(11.85, 16.93, 313.88°)
OKLaboklab(24.48% 0.0288 -0.0337)
OKLCHoklch(24.48% 0.044 310.5)
XYZxyz(1.7395, 1.3835, 2.9711)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A30 #23301A
analogous
#1C1A30 #271A30 #301A2E
triadic
#271A30 #30271A #1A3027
tetradic
#271A30 #301C1A #23301A #1A2E30
square
#271A30 #301C1A #23301A #1A2E30
split-complementary
#271A30 #2E301A #1A301C
monochromatic
#100B14 #100B14 #271A30 #473058 #68457F

Accessibility & contrast

On white

16.45
#271A30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A30
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A30#FFFFFF#000000##FFFFFF
##271A301.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161F31
Deuteranopia (green-blind)
#191F2F
Tritanopia (blue-blind)
#261D22
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #271a30;
/* rgb */ color: rgb(39, 26, 48);
/* oklch */ color: oklch(24.5% 0.044 310.5);
Tailwind
colors: {
  custom: {
    50: '#615668',
    500: '#271a30',
    950: '#000000',
  },
}
SCSS
$custom: #271a30;
$custom-light: #615668;
$custom-dark: #000000;
JSON
{
  "hex": "#271a30",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 48
  },
  "hsl": {
    "h": 275.455,
    "s": 29.73,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24477,
    "c": 0.04435,
    "h": 310.5
  },
  "luminance": 0.01384
}

Semantic roles & 50–950 ramp

primary
#271A30
secondary
#506442
accent
#C6628B
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271A30

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

Preview Lab → · Contrast checker → · Palette generator →

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