#271373#271373

#271373 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.150 H 281.5°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#271373
RGBrgb(39, 19, 115)
HSLhsl(253, 72%, 26%)
HSVhsv(253, 83%, 45%)
CMYKcmyk(66.1%, 83.5%, 0%, 54.9%)
CIE-LABlab(16.18, 37.55, -50.95)
CIE-LCHlch(16.18, 63.29, 306.39°)
OKLaboklab(29.43% 0.03 -0.147)
OKLCHoklch(29.43% 0.15 281.5)
XYZxyz(4.1631, 2.1346, 16.4090)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271373 #5F7313
analogous
#132F73 #271373 #571373
triadic
#271373 #732713 #137327
tetradic
#271373 #73132F #5F7313 #137357
square
#271373 #73132F #5F7313 #137357
split-complementary
#271373 #735713 #2F7313
monochromatic
#09041A #150A3E #271373 #391CA8 #4B25DB

Accessibility & contrast

On white

14.72
#271373 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#271373 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271373
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271373#FFFFFF#000000##FFFFFF
##2713731.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B76
Deuteranopia (green-blind)
#002571
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271373;
/* rgb */ color: rgb(39, 19, 115);
/* oklch */ color: oklch(29.4% 0.150 281.5);
Tailwind
colors: {
  custom: {
    50: '#6d549c',
    500: '#271373',
    950: '#000000',
  },
}
SCSS
$custom: #271373;
$custom-light: #6d549c;
$custom-dark: #000000;
JSON
{
  "hex": "#271373",
  "rgb": {
    "r": 39,
    "g": 19,
    "b": 115
  },
  "hsl": {
    "h": 252.5,
    "s": 71.642,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29431,
    "c": 0.15005,
    "h": 281.5
  },
  "luminance": 0.02135
}

Semantic roles & 50–950 ramp

primary
#271373
secondary
#92AA38
accent
#EE39C9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271373

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

Preview Lab → · Contrast checker → · Palette generator →

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