#271460#271460

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

Color values

HEX#271460
RGBrgb(39, 20, 96)
HSLhsl(255, 66%, 23%)
HSVhsv(255, 79%, 38%)
CMYKcmyk(59.4%, 79.2%, 0%, 62.4%)
CIE-LABlab(14.26, 30.96, -41.64)
CIE-LCHlch(14.26, 51.88, 306.63°)
OKLaboklab(27.47% 0.0351 -0.1198)
OKLCHoklch(27.47% 0.125 286.3)
XYZxyz(3.1975, 1.7760, 11.2384)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271460 #4D6014
analogous
#142760 #271460 #4D1460
triadic
#271460 #602714 #146027
tetradic
#271460 #601427 #4D6014 #14604D
square
#271460 #601427 #4D6014 #14604D
split-complementary
#271460 #604D14 #276014
monochromatic
#0A0519 #12092D #271460 #3C1F93 #5029C5

Accessibility & contrast

On white

15.50
#271460 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271460
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271460#FFFFFF#000000##FFFFFF
##2714601.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002662
Deuteranopia (green-blind)
#00225F
Tritanopia (blue-blind)
#0D2939
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271460;
/* rgb */ color: rgb(39, 20, 96);
/* oklch */ color: oklch(27.5% 0.125 286.3);
Tailwind
colors: {
  custom: {
    50: '#69548e',
    500: '#271460',
    950: '#000000',
  },
}
SCSS
$custom: #271460;
$custom-light: #69548e;
$custom-dark: #000000;
JSON
{
  "hex": "#271460",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 96
  },
  "hsl": {
    "h": 255,
    "s": 65.517,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27465,
    "c": 0.12487,
    "h": 286.3
  },
  "luminance": 0.01776
}

Semantic roles & 50–950 ramp

primary
#271460
secondary
#809838
accent
#E83FBE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #271460

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

Preview Lab → · Contrast checker → · Palette generator →

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