#271679#271679

#271679 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.155 H 279.8°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#271679
RGBrgb(39, 22, 121)
HSLhsl(250, 69%, 28%)
HSVhsv(250, 82%, 47%)
CMYKcmyk(67.8%, 81.8%, 0%, 52.5%)
CIE-LABlab(17.39, 37.93, -52.81)
CIE-LCHlch(17.39, 65.02, 305.69°)
OKLaboklab(30.48% 0.0264 -0.1525)
OKLCHoklch(30.48% 0.155 279.8)
XYZxyz(4.5737, 2.3853, 18.3048)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271679 #687916
analogous
#163679 #271679 #581679
triadic
#271679 #792716 #167927
tetradic
#271679 #791636 #687916 #167958
square
#271679 #791636 #687916 #167958
split-complementary
#271679 #795816 #367916
monochromatic
#08051A #160D45 #271679 #381FAD #4D30D9

Accessibility & contrast

On white

14.22
#271679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#271679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271679
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271679#FFFFFF#000000##FFFFFF
##2716791.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7C
Deuteranopia (green-blind)
#002777
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271679;
/* rgb */ color: rgb(39, 22, 121);
/* oklch */ color: oklch(30.5% 0.155 279.8);
Tailwind
colors: {
  custom: {
    50: '#6e56a1',
    500: '#271679',
    950: '#000000',
  },
}
SCSS
$custom: #271679;
$custom-light: #6e56a1;
$custom-dark: #000000;
JSON
{
  "hex": "#271679",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 250.303,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30478,
    "c": 0.15473,
    "h": 279.8
  },
  "luminance": 0.02386
}

Semantic roles & 50–950 ramp

primary
#271679
secondary
#9BAE3D
accent
#EC3CCE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #271679

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

Preview Lab → · Contrast checker → · Palette generator →

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