#271047#271047

#271047 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.097 H 297.9°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#271047
RGBrgb(39, 16, 71)
HSLhsl(265, 63%, 17%)
HSVhsv(265, 77%, 28%)
CMYKcmyk(45.1%, 77.5%, 0%, 72.2%)
CIE-LABlab(10.97, 25.35, -29.98)
CIE-LCHlch(10.97, 39.26, 310.22°)
OKLaboklab(24.37% 0.0454 -0.0856)
OKLCHoklch(24.37% 0.097 297.9)
XYZxyz(2.1590, 1.2568, 6.0889)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271047 #304710
analogous
#101547 #271047 #431047
triadic
#271047 #472710 #104727
tetradic
#271047 #471015 #304710 #104743
square
#271047 #471015 #304710 #104743
split-complementary
#271047 #474310 #154710
monochromatic
#0E0619 #0E0619 #271047 #421B79 #5E27AB

Accessibility & contrast

On white

16.78
#271047 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#271047 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271047
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271047#FFFFFF#000000##FFFFFF
##2710471.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271047;
/* rgb */ color: rgb(39, 16, 71);
/* oklch */ color: oklch(24.4% 0.097 297.9);
Tailwind
colors: {
  custom: {
    50: '#65507b',
    500: '#271047',
    950: '#000000',
  },
}
SCSS
$custom: #271047;
$custom-light: #65507b;
$custom-dark: #000000;
JSON
{
  "hex": "#271047",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 71
  },
  "hsl": {
    "h": 265.091,
    "s": 63.218,
    "l": 17.059
  },
  "oklch": {
    "l": 0.24369,
    "c": 0.09688,
    "h": 297.9
  },
  "luminance": 0.01257
}

Semantic roles & 50–950 ramp

primary
#271047
secondary
#608132
accent
#E642A1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #271047

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

Preview Lab → · Contrast checker → · Palette generator →

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