#271579#271579

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

Color values

HEX#271579
RGBrgb(39, 21, 121)
HSLhsl(251, 70%, 28%)
HSVhsv(251, 83%, 47%)
CMYKcmyk(67.8%, 82.6%, 0%, 52.5%)
CIE-LABlab(17.22, 38.44, -53.10)
CIE-LCHlch(17.22, 65.56, 305.90°)
OKLaboklab(30.36% 0.0269 -0.1533)
OKLCHoklch(30.36% 0.156 280)
XYZxyz(4.5550, 2.3478, 18.2986)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271579 #677915
analogous
#153579 #271579 #591579
triadic
#271579 #792715 #157927
tetradic
#271579 #791535 #677915 #157959
square
#271579 #791535 #677915 #157959
split-complementary
#271579 #795915 #357915
monochromatic
#08051A #160C45 #271579 #381EAD #4D2EDB

Accessibility & contrast

On white

14.29
#271579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271579
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271579#FFFFFF#000000##FFFFFF
##2715791.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271579;
/* rgb */ color: rgb(39, 21, 121);
/* oklch */ color: oklch(30.4% 0.156 280.0);
Tailwind
colors: {
  custom: {
    50: '#6e56a1',
    500: '#271579',
    950: '#000000',
  },
}
SCSS
$custom: #271579;
$custom-light: #6e56a1;
$custom-dark: #000000;
JSON
{
  "hex": "#271579",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 250.8,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30356,
    "c": 0.15564,
    "h": 280
  },
  "luminance": 0.02348
}

Semantic roles & 50–950 ramp

primary
#271579
secondary
#9AAF3B
accent
#ED3BCD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #271579

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

Preview Lab → · Contrast checker → · Palette generator →

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