#271476#271476

#271476 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.153 H 280.7°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#271476
RGBrgb(39, 20, 118)
HSLhsl(252, 71%, 27%)
HSVhsv(252, 83%, 46%)
CMYKcmyk(66.9%, 83.1%, 0%, 53.7%)
CIE-LABlab(16.70, 38.00, -52.03)
CIE-LCHlch(16.70, 64.43, 306.14°)
OKLaboklab(29.89% 0.0284 -0.1502)
OKLCHoklch(29.89% 0.153 280.7)
XYZxyz(4.3558, 2.2393, 17.3387)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271476 #637614
analogous
#143276 #271476 #581476
triadic
#271476 #762714 #147627
tetradic
#271476 #761432 #637614 #147658
square
#271476 #761432 #637614 #147658
split-complementary
#271476 #765814 #327614
monochromatic
#09041A #160B42 #271476 #381DAA #4C2ADB

Accessibility & contrast

On white

14.50
#271476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#271476 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271476
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271476#FFFFFF#000000##FFFFFF
##2714761.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002674
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271476;
/* rgb */ color: rgb(39, 20, 118);
/* oklch */ color: oklch(29.9% 0.153 280.7);
Tailwind
colors: {
  custom: {
    50: '#6e559f',
    500: '#271476',
    950: '#000000',
  },
}
SCSS
$custom: #271476;
$custom-light: #6e559f;
$custom-dark: #000000;
JSON
{
  "hex": "#271476",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 251.633,
    "s": 71.014,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29893,
    "c": 0.15285,
    "h": 280.7
  },
  "luminance": 0.0224
}

Semantic roles & 50–950 ramp

primary
#271476
secondary
#96AC3A
accent
#EE3ACB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #271476

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

Preview Lab → · Contrast checker → · Palette generator →

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