#271372#271372

#271372 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.149 H 281.8°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#271372
RGBrgb(39, 19, 114)
HSLhsl(253, 71%, 26%)
HSVhsv(253, 83%, 45%)
CMYKcmyk(65.8%, 83.3%, 0%, 55.3%)
CIE-LABlab(16.06, 37.24, -50.50)
CIE-LCHlch(16.06, 62.74, 306.41°)
OKLaboklab(29.32% 0.0303 -0.1457)
OKLCHoklch(29.32% 0.149 281.8)
XYZxyz(4.1059, 2.1117, 16.1076)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271372 #5E7213
analogous
#132E72 #271372 #561372
triadic
#271372 #722713 #137227
tetradic
#271372 #72132E #5E7213 #137256
square
#271372 #72132E #5E7213 #137256
split-complementary
#271372 #725613 #2E7213
monochromatic
#09041A #150A3E #271372 #391CA6 #4B25DB

Accessibility & contrast

On white

14.76
#271372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271372
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271372#FFFFFF#000000##FFFFFF
##2713721.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271372;
/* rgb */ color: rgb(39, 19, 114);
/* oklch */ color: oklch(29.3% 0.149 281.8);
Tailwind
colors: {
  custom: {
    50: '#6d549c',
    500: '#271372',
    950: '#000000',
  },
}
SCSS
$custom: #271372;
$custom-light: #6d549c;
$custom-dark: #000000;
JSON
{
  "hex": "#271372",
  "rgb": {
    "r": 39,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 252.632,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29317,
    "c": 0.14881,
    "h": 281.8
  },
  "luminance": 0.02112
}

Semantic roles & 50–950 ramp

primary
#271372
secondary
#91A938
accent
#EE3AC8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271372

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

Preview Lab → · Contrast checker → · Palette generator →

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