#271A39#271A39

#271A39 is a dark, muted violet. Relative luminance 0.015; OKLCH L 25.1% C 0.059 H 301.7°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#271A39
RGBrgb(39, 26, 57)
HSLhsl(265, 37%, 16%)
HSVhsv(265, 54%, 22%)
CMYKcmyk(31.6%, 54.4%, 0%, 77.6%)
CIE-LABlab(12.39, 14.39, -17.82)
CIE-LCHlch(12.39, 22.91, 308.92°)
OKLaboklab(25.06% 0.0308 -0.05)
OKLCHoklch(25.06% 0.059 301.7)
XYZxyz(1.9444, 1.4655, 4.0505)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A39 #2C391A
analogous
#1A1D39 #271A39 #371A39
triadic
#271A39 #39271A #1A3927
tetradic
#271A39 #391A1D #2C391A #1A3937
square
#271A39 #391A1D #2C391A #1A3937
split-complementary
#271A39 #39371A #1D391A
monochromatic
#0E0A15 #0E0A15 #271A39 #442D63 #61408D

Accessibility & contrast

On white

16.24
#271A39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A39
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A39#FFFFFF#000000##FFFFFF
##271A391.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11203A
Deuteranopia (green-blind)
#142038
Tritanopia (blue-blind)
#241F26
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271a39;
/* rgb */ color: rgb(39, 26, 57);
/* oklch */ color: oklch(25.1% 0.059 301.7);
Tailwind
colors: {
  custom: {
    50: '#62566f',
    500: '#271a39',
    950: '#000000',
  },
}
SCSS
$custom: #271a39;
$custom-light: #62566f;
$custom-dark: #000000;
JSON
{
  "hex": "#271a39",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 57
  },
  "hsl": {
    "h": 265.161,
    "s": 37.349,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25059,
    "c": 0.0587,
    "h": 301.7
  },
  "luminance": 0.01466
}

Semantic roles & 50–950 ramp

primary
#271A39
secondary
#5B6E41
accent
#CD5A9D
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050307
muted
#79787A

Preview Lab

Preview with #271A39

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

Preview Lab → · Contrast checker → · Palette generator →

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