#271371#271371

#271371 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.148 H 282.0°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#271371
RGBrgb(39, 19, 113)
HSLhsl(253, 71%, 26%)
HSVhsv(253, 83%, 44%)
CMYKcmyk(65.5%, 83.2%, 0%, 55.7%)
CIE-LABlab(15.95, 36.92, -50.04)
CIE-LCHlch(15.95, 62.19, 306.43°)
OKLaboklab(29.2% 0.0306 -0.1443)
OKLCHoklch(29.2% 0.148 282)
XYZxyz(4.0493, 2.0890, 15.8094)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271371 #5D7113
analogous
#132E71 #271371 #561371
triadic
#271371 #712713 #137127
tetradic
#271371 #71132E #5D7113 #137156
square
#271371 #71132E #5D7113 #137156
split-complementary
#271371 #715613 #2E7113
monochromatic
#09041A #150A3D #271371 #391CA5 #4B25DA

Accessibility & contrast

On white

14.81
#271371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#271371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271371
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271371#FFFFFF#000000##FFFFFF
##2713711.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271371;
/* rgb */ color: rgb(39, 19, 113);
/* oklch */ color: oklch(29.2% 0.148 282.0);
Tailwind
colors: {
  custom: {
    50: '#6d549b',
    500: '#271371',
    950: '#000000',
  },
}
SCSS
$custom: #271371;
$custom-light: #6d549b;
$custom-dark: #000000;
JSON
{
  "hex": "#271371",
  "rgb": {
    "r": 39,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 252.766,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29203,
    "c": 0.14757,
    "h": 282
  },
  "luminance": 0.02089
}

Semantic roles & 50–950 ramp

primary
#271371
secondary
#90A838
accent
#EE3AC8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271371

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

Preview Lab → · Contrast checker → · Palette generator →

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