#271477#271477

#271477 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.154 H 280.5°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#271477
RGBrgb(39, 20, 119)
HSLhsl(252, 71%, 27%)
HSVhsv(252, 83%, 47%)
CMYKcmyk(67.2%, 83.2%, 0%, 53.3%)
CIE-LABlab(16.81, 38.31, -52.48)
CIE-LCHlch(16.81, 64.98, 306.13°)
OKLaboklab(30.01% 0.0281 -0.1515)
OKLCHoklch(30.01% 0.154 280.5)
XYZxyz(4.4156, 2.2632, 17.6533)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271477 #647714
analogous
#143377 #271477 #591477
triadic
#271477 #772714 #147727
tetradic
#271477 #771433 #647714 #147759
square
#271477 #771433 #647714 #147759
split-complementary
#271477 #775914 #337714
monochromatic
#09041A #160B43 #271477 #381DAB #4C2ADB

Accessibility & contrast

On white

14.45
#271477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271477
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271477#FFFFFF#000000##FFFFFF
##2714771.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7A
Deuteranopia (green-blind)
#002675
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271477;
/* rgb */ color: rgb(39, 20, 119);
/* oklch */ color: oklch(30.0% 0.154 280.5);
Tailwind
colors: {
  custom: {
    50: '#6e559f',
    500: '#271477',
    950: '#000000',
  },
}
SCSS
$custom: #271477;
$custom-light: #6e559f;
$custom-dark: #000000;
JSON
{
  "hex": "#271477",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 119
  },
  "hsl": {
    "h": 251.515,
    "s": 71.223,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30008,
    "c": 0.15407,
    "h": 280.5
  },
  "luminance": 0.02264
}

Semantic roles & 50–950 ramp

primary
#271477
secondary
#97AD3A
accent
#EE3ACB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #271477

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

Preview Lab → · Contrast checker → · Palette generator →

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