#271141#271141

#271141 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.087 H 301.1°. Best body text is #FFFFFF at 16.90:1 contrast (WCAG AA passes).

Color values

HEX#271141
RGBrgb(39, 17, 65)
HSLhsl(268, 59%, 16%)
HSVhsv(268, 74%, 25%)
CMYKcmyk(40%, 73.8%, 0%, 74.5%)
CIE-LABlab(10.66, 22.92, -26.27)
CIE-LCHlch(10.66, 34.86, 311.11°)
OKLaboklab(23.98% 0.045 -0.0747)
OKLCHoklch(23.98% 0.087 301.1)
XYZxyz(1.9911, 1.2139, 5.1294)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271141 #2B4111
analogous
#111341 #271141 #3F1141
triadic
#271141 #412711 #114127
tetradic
#271141 #411113 #2B4111 #11413F
square
#271141 #411113 #2B4111 #11413F
split-complementary
#271141 #413F11 #134111
monochromatic
#0F0618 #0F0618 #271141 #441E72 #612AA2

Accessibility & contrast

On white

16.90
#271141 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#271141 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271141
16.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271141#FFFFFF#000000##FFFFFF
##2711411.0016.901.2416.90
#FFFFFF16.901.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D42
Deuteranopia (green-blind)
#011D40
Tritanopia (blue-blind)
#211C27
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #271141;
/* rgb */ color: rgb(39, 17, 65);
/* oklch */ color: oklch(24.0% 0.087 301.1);
Tailwind
colors: {
  custom: {
    50: '#645076',
    500: '#271141',
    950: '#000000',
  },
}
SCSS
$custom: #271141;
$custom-light: #645076;
$custom-dark: #000000;
JSON
{
  "hex": "#271141",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 65
  },
  "hsl": {
    "h": 267.5,
    "s": 58.537,
    "l": 16.078
  },
  "oklch": {
    "l": 0.2398,
    "c": 0.08721,
    "h": 301.1
  },
  "luminance": 0.01214
}

Semantic roles & 50–950 ramp

primary
#271141
secondary
#5A7B33
accent
#E2469A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050208
muted
#7A787B

Preview Lab

Preview with #271141

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

Preview Lab → · Contrast checker → · Palette generator →

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