#271164#271164

#271164 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.5% C 0.133 H 285.8°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#271164
RGBrgb(39, 17, 100)
HSLhsl(256, 71%, 23%)
HSVhsv(256, 83%, 39%)
CMYKcmyk(61%, 83%, 0%, 60.8%)
CIE-LABlab(14.13, 33.85, -44.52)
CIE-LCHlch(14.13, 55.93, 307.25°)
OKLaboklab(27.5% 0.0363 -0.1282)
OKLCHoklch(27.5% 0.133 285.8)
XYZxyz(3.3367, 1.7521, 12.2165)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271164 #4E6411
analogous
#112464 #271164 #501164
triadic
#271164 #642711 #116427
tetradic
#271164 #641124 #4E6411 #116450
square
#271164 #641124 #4E6411 #116450
split-complementary
#271164 #645011 #246411
monochromatic
#0A041A #130830 #271164 #3B1A98 #5023CD

Accessibility & contrast

On white

15.55
#271164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#271164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271164
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271164#FFFFFF#000000##FFFFFF
##2711641.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271164;
/* rgb */ color: rgb(39, 17, 100);
/* oklch */ color: oklch(27.5% 0.133 285.8);
Tailwind
colors: {
  custom: {
    50: '#6a5291',
    500: '#271164',
    950: '#000000',
  },
}
SCSS
$custom: #271164;
$custom-light: #6a5291;
$custom-dark: #000000;
JSON
{
  "hex": "#271164",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 100
  },
  "hsl": {
    "h": 255.904,
    "s": 70.94,
    "l": 22.941
  },
  "oklch": {
    "l": 0.275,
    "c": 0.13326,
    "h": 285.8
  },
  "luminance": 0.01752
}

Semantic roles & 50–950 ramp

primary
#271164
secondary
#819C35
accent
#EE3ABE
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #271164

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

Preview Lab → · Contrast checker → · Palette generator →

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