#271147#271147

#271147 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.095 H 297.6°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#271147
RGBrgb(39, 17, 71)
HSLhsl(264, 61%, 17%)
HSVhsv(264, 76%, 28%)
CMYKcmyk(45.1%, 76.1%, 0%, 72.2%)
CIE-LABlab(11.19, 24.76, -29.63)
CIE-LCHlch(11.19, 38.61, 309.88°)
OKLaboklab(24.52% 0.0441 -0.0846)
OKLCHoklch(24.52% 0.095 297.6)
XYZxyz(2.1742, 1.2871, 6.0939)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271147 #314711
analogous
#111647 #271147 #421147
triadic
#271147 #472711 #114727
tetradic
#271147 #471116 #314711 #114742
square
#271147 #471116 #314711 #114742
split-complementary
#271147 #474211 #164711
monochromatic
#0E0619 #0E0619 #271147 #421D78 #5D29AA

Accessibility & contrast

On white

16.70
#271147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#271147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271147
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271147#FFFFFF#000000##FFFFFF
##2711471.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E49
Deuteranopia (green-blind)
#001D46
Tritanopia (blue-blind)
#1F1E2A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #271147;
/* rgb */ color: rgb(39, 17, 71);
/* oklch */ color: oklch(24.5% 0.095 297.6);
Tailwind
colors: {
  custom: {
    50: '#65517b',
    500: '#271147',
    950: '#000000',
  },
}
SCSS
$custom: #271147;
$custom-light: #65517b;
$custom-dark: #000000;
JSON
{
  "hex": "#271147",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 264.444,
    "s": 61.364,
    "l": 17.255
  },
  "oklch": {
    "l": 0.24523,
    "c": 0.09541,
    "h": 297.6
  },
  "luminance": 0.01287
}

Semantic roles & 50–950 ramp

primary
#271147
secondary
#618133
accent
#E443A3
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #271147

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

Preview Lab → · Contrast checker → · Palette generator →

#271147 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva