#271064#271064

#271064 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.134 H 286.0°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#271064
RGBrgb(39, 16, 100)
HSLhsl(256, 72%, 23%)
HSVhsv(256, 84%, 39%)
CMYKcmyk(61%, 84%, 0%, 60.8%)
CIE-LABlab(13.95, 34.36, -44.80)
CIE-LCHlch(13.95, 56.46, 307.48°)
OKLaboklab(27.38% 0.037 -0.129)
OKLCHoklch(27.38% 0.134 286)
XYZxyz(3.3215, 1.7218, 12.2114)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271064 #4D6410
analogous
#102364 #271064 #511064
triadic
#271064 #642710 #106427
tetradic
#271064 #641023 #4D6410 #106451
square
#271064 #641023 #4D6410 #106451
split-complementary
#271064 #645110 #236410
monochromatic
#0A041A #12082F #271064 #3C1899 #5021CE

Accessibility & contrast

On white

15.62
#271064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#271064 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271064
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271064#FFFFFF#000000##FFFFFF
##2710641.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002666
Deuteranopia (green-blind)
#002163
Tritanopia (blue-blind)
#08293A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271064;
/* rgb */ color: rgb(39, 16, 100);
/* oklch */ color: oklch(27.4% 0.134 286.0);
Tailwind
colors: {
  custom: {
    50: '#6a5291',
    500: '#271064',
    950: '#000000',
  },
}
SCSS
$custom: #271064;
$custom-light: #6a5291;
$custom-dark: #000000;
JSON
{
  "hex": "#271064",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 100
  },
  "hsl": {
    "h": 256.429,
    "s": 72.414,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27379,
    "c": 0.13425,
    "h": 286
  },
  "luminance": 0.01722
}

Semantic roles & 50–950 ramp

primary
#271064
secondary
#809D33
accent
#EF39BD
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #271064

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

Preview Lab → · Contrast checker → · Palette generator →

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