#271678#271678

#271678 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.153 H 280.0°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#271678
RGBrgb(39, 22, 120)
HSLhsl(250, 69%, 28%)
HSVhsv(250, 82%, 47%)
CMYKcmyk(67.5%, 81.7%, 0%, 52.9%)
CIE-LABlab(17.28, 37.61, -52.36)
CIE-LCHlch(17.28, 64.47, 305.69°)
OKLaboklab(30.37% 0.0267 -0.1511)
OKLCHoklch(30.37% 0.153 280)
XYZxyz(4.5127, 2.3609, 17.9835)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271678 #677816
analogous
#163678 #271678 #581678
triadic
#271678 #782716 #167827
tetradic
#271678 #781636 #677816 #167858
square
#271678 #781636 #677816 #167858
split-complementary
#271678 #785816 #367816
monochromatic
#08051A #160D44 #271678 #381FAC #4D2FD9

Accessibility & contrast

On white

14.26
#271678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#271678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271678
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271678#FFFFFF#000000##FFFFFF
##2716781.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002776
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271678;
/* rgb */ color: rgb(39, 22, 120);
/* oklch */ color: oklch(30.4% 0.153 280.0);
Tailwind
colors: {
  custom: {
    50: '#6e56a0',
    500: '#271678',
    950: '#000000',
  },
}
SCSS
$custom: #271678;
$custom-light: #6e56a0;
$custom-dark: #000000;
JSON
{
  "hex": "#271678",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 250.408,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30365,
    "c": 0.15348,
    "h": 280
  },
  "luminance": 0.02361
}

Semantic roles & 50–950 ramp

primary
#271678
secondary
#9AAD3C
accent
#EC3CCD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #271678

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

Preview Lab → · Contrast checker → · Palette generator →

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