#271374#271374

#271374 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.151 H 281.3°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#271374
RGBrgb(39, 19, 116)
HSLhsl(252, 72%, 26%)
HSVhsv(252, 84%, 45%)
CMYKcmyk(66.4%, 83.6%, 0%, 54.5%)
CIE-LABlab(16.29, 37.87, -51.41)
CIE-LCHlch(16.29, 63.85, 306.37°)
OKLaboklab(29.55% 0.0297 -0.1483)
OKLCHoklch(29.55% 0.151 281.3)
XYZxyz(4.2210, 2.1577, 16.7137)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271374 #607413
analogous
#133074 #271374 #581374
triadic
#271374 #742713 #137427
tetradic
#271374 #741330 #607413 #137458
square
#271374 #741330 #607413 #137458
split-complementary
#271374 #745813 #307413
monochromatic
#09041A #150A3F #271374 #391CA9 #4B26DB

Accessibility & contrast

On white

14.67
#271374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271374
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271374#FFFFFF#000000##FFFFFF
##2713741.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002572
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271374;
/* rgb */ color: rgb(39, 19, 116);
/* oklch */ color: oklch(29.5% 0.151 281.3);
Tailwind
colors: {
  custom: {
    50: '#6d559d',
    500: '#271374',
    950: '#000000',
  },
}
SCSS
$custom: #271374;
$custom-light: #6d559d;
$custom-dark: #000000;
JSON
{
  "hex": "#271374",
  "rgb": {
    "r": 39,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 252.371,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29546,
    "c": 0.15127,
    "h": 281.3
  },
  "luminance": 0.02158
}

Semantic roles & 50–950 ramp

primary
#271374
secondary
#93AA38
accent
#EF39C9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271374

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

Preview Lab → · Contrast checker → · Palette generator →

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