#271474#271474

#271474 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.150 H 281.1°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#271474
RGBrgb(39, 20, 116)
HSLhsl(252, 71%, 27%)
HSVhsv(252, 83%, 45%)
CMYKcmyk(66.4%, 82.8%, 0%, 54.5%)
CIE-LABlab(16.47, 37.37, -51.12)
CIE-LCHlch(16.47, 63.32, 306.16°)
OKLaboklab(29.67% 0.0291 -0.1475)
OKLCHoklch(29.67% 0.15 281.1)
XYZxyz(4.2382, 2.1923, 16.7194)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271474 #617414
analogous
#143174 #271474 #571474
triadic
#271474 #742714 #147427
tetradic
#271474 #741431 #617414 #147457
square
#271474 #741431 #617414 #147457
split-complementary
#271474 #745714 #317414
monochromatic
#09051A #150B40 #271474 #391DA8 #4C28DA

Accessibility & contrast

On white

14.60
#271474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#271474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271474
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271474#FFFFFF#000000##FFFFFF
##2714741.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271474;
/* rgb */ color: rgb(39, 20, 116);
/* oklch */ color: oklch(29.7% 0.150 281.1);
Tailwind
colors: {
  custom: {
    50: '#6d559d',
    500: '#271474',
    950: '#000000',
  },
}
SCSS
$custom: #271474;
$custom-light: #6d559d;
$custom-dark: #000000;
JSON
{
  "hex": "#271474",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 251.875,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29665,
    "c": 0.15037,
    "h": 281.1
  },
  "luminance": 0.02193
}

Semantic roles & 50–950 ramp

primary
#271474
secondary
#94AA3A
accent
#ED3ACA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271474

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

Preview Lab → · Contrast checker → · Palette generator →

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