#271041#271041

#271041 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.8% C 0.089 H 301.5°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#271041
RGBrgb(39, 16, 65)
HSLhsl(268, 60%, 16%)
HSVhsv(268, 75%, 25%)
CMYKcmyk(40%, 75.4%, 0%, 74.5%)
CIE-LABlab(10.44, 23.53, -26.63)
CIE-LCHlch(10.44, 35.54, 311.47°)
OKLaboklab(23.82% 0.0464 -0.0757)
OKLCHoklch(23.82% 0.089 301.5)
XYZxyz(1.9759, 1.1836, 5.1244)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271041 #2A4110
analogous
#101141 #271041 #3F1041
triadic
#271041 #412710 #104127
tetradic
#271041 #411011 #2A4110 #10413F
square
#271041 #411011 #2A4110 #10413F
split-complementary
#271041 #413F10 #114110
monochromatic
#0F0619 #0F0619 #271041 #441C72 #6228A3

Accessibility & contrast

On white

16.98
#271041 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271041
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271041#FFFFFF#000000##FFFFFF
##2710411.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C42
Deuteranopia (green-blind)
#001C40
Tritanopia (blue-blind)
#221B26
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #271041;
/* rgb */ color: rgb(39, 16, 65);
/* oklch */ color: oklch(23.8% 0.089 301.5);
Tailwind
colors: {
  custom: {
    50: '#645076',
    500: '#271041',
    950: '#000000',
  },
}
SCSS
$custom: #271041;
$custom-light: #645076;
$custom-dark: #000000;
JSON
{
  "hex": "#271041",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 65
  },
  "hsl": {
    "h": 268.163,
    "s": 60.494,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23819,
    "c": 0.08882,
    "h": 301.5
  },
  "luminance": 0.01184
}

Semantic roles & 50–950 ramp

primary
#271041
secondary
#597B32
accent
#E44499
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #271041

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

Preview Lab → · Contrast checker → · Palette generator →

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