#271264#271264

#271264 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.132 H 285.6°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#271264
RGBrgb(39, 18, 100)
HSLhsl(255, 69%, 23%)
HSVhsv(255, 82%, 39%)
CMYKcmyk(61%, 82%, 0%, 60.8%)
CIE-LABlab(14.31, 33.33, -44.22)
CIE-LCHlch(14.31, 55.38, 307.01°)
OKLaboklab(27.63% 0.0356 -0.1274)
OKLCHoklch(27.63% 0.132 285.6)
XYZxyz(3.3526, 1.7838, 12.2218)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271264 #4F6412
analogous
#122664 #271264 #501264
triadic
#271264 #642712 #126427
tetradic
#271264 #641226 #4F6412 #126450
square
#271264 #641226 #4F6412 #126450
split-complementary
#271264 #645012 #266412
monochromatic
#0A051A #130930 #271264 #3B1B98 #4F25CC

Accessibility & contrast

On white

15.48
#271264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#271264 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271264
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271264#FFFFFF#000000##FFFFFF
##2712641.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002666
Deuteranopia (green-blind)
#002263
Tritanopia (blue-blind)
#072A3A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271264;
/* rgb */ color: rgb(39, 18, 100);
/* oklch */ color: oklch(27.6% 0.132 285.6);
Tailwind
colors: {
  custom: {
    50: '#6a5391',
    500: '#271264',
    950: '#000000',
  },
}
SCSS
$custom: #271264;
$custom-light: #6a5391;
$custom-dark: #000000;
JSON
{
  "hex": "#271264",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 100
  },
  "hsl": {
    "h": 255.366,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27626,
    "c": 0.13223,
    "h": 285.6
  },
  "luminance": 0.01784
}

Semantic roles & 50–950 ramp

primary
#271264
secondary
#829C36
accent
#EC3BBF
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #271264

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

Preview Lab → · Contrast checker → · Palette generator →

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