#271479#271479

#271479 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.157 H 280.1°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#271479
RGBrgb(39, 20, 121)
HSLhsl(251, 72%, 28%)
HSVhsv(251, 83%, 47%)
CMYKcmyk(67.8%, 83.5%, 0%, 52.5%)
CIE-LABlab(17.05, 38.94, -53.38)
CIE-LCHlch(17.05, 66.08, 306.11°)
OKLaboklab(30.24% 0.0275 -0.1541)
OKLCHoklch(30.24% 0.157 280.1)
XYZxyz(4.5369, 2.3118, 18.2926)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271479 #667914
analogous
#143479 #271479 #591479
triadic
#271479 #792714 #147927
tetradic
#271479 #791434 #667914 #147959
square
#271479 #791434 #667914 #147959
split-complementary
#271479 #795914 #347914
monochromatic
#08041A #160B44 #271479 #381DAE #4D2BDC

Accessibility & contrast

On white

14.36
#271479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#271479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271479
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271479#FFFFFF#000000##FFFFFF
##2714791.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.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: #271479;
/* rgb */ color: rgb(39, 20, 121);
/* oklch */ color: oklch(30.2% 0.157 280.1);
Tailwind
colors: {
  custom: {
    50: '#6e55a1',
    500: '#271479',
    950: '#000000',
  },
}
SCSS
$custom: #271479;
$custom-light: #6e55a1;
$custom-dark: #000000;
JSON
{
  "hex": "#271479",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 121
  },
  "hsl": {
    "h": 251.287,
    "s": 71.631,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30238,
    "c": 0.15654,
    "h": 280.1
  },
  "luminance": 0.02312
}

Semantic roles & 50–950 ramp

primary
#271479
secondary
#99AF3A
accent
#EE39CC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #271479

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

Preview Lab → · Contrast checker → · Palette generator →

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