#271247#271247

#271247 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.094 H 297.2°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#271247
RGBrgb(39, 18, 71)
HSLhsl(264, 60%, 17%)
HSVhsv(264, 75%, 28%)
CMYKcmyk(45.1%, 74.6%, 0%, 72.2%)
CIE-LABlab(11.41, 24.15, -29.27)
CIE-LCHlch(11.41, 37.95, 309.52°)
OKLaboklab(24.68% 0.0429 -0.0835)
OKLCHoklch(24.68% 0.094 297.2)
XYZxyz(2.1900, 1.3188, 6.0992)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271247 #324712
analogous
#121747 #271247 #421247
triadic
#271247 #472712 #124727
tetradic
#271247 #471217 #324712 #124742
square
#271247 #471217 #324712 #124742
split-complementary
#271247 #474212 #174712
monochromatic
#0D0618 #0D0618 #271247 #421E78 #5D2BA9

Accessibility & contrast

On white

16.62
#271247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271247
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271247#FFFFFF#000000##FFFFFF
##2712471.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271247;
/* rgb */ color: rgb(39, 18, 71);
/* oklch */ color: oklch(24.7% 0.094 297.2);
Tailwind
colors: {
  custom: {
    50: '#65517b',
    500: '#271247',
    950: '#000000',
  },
}
SCSS
$custom: #271247;
$custom-light: #65517b;
$custom-dark: #000000;
JSON
{
  "hex": "#271247",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 71
  },
  "hsl": {
    "h": 263.774,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24682,
    "c": 0.0939,
    "h": 297.2
  },
  "luminance": 0.01319
}

Semantic roles & 50–950 ramp

primary
#271247
secondary
#628035
accent
#E345A4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #271247

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

Preview Lab → · Contrast checker → · Palette generator →

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