#271054#271054

#271054 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.114 H 291.7°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#271054
RGBrgb(39, 16, 84)
HSLhsl(260, 68%, 20%)
HSVhsv(260, 81%, 33%)
CMYKcmyk(53.6%, 81%, 0%, 67.1%)
CIE-LABlab(12.23, 29.38, -36.89)
CIE-LCHlch(12.23, 47.15, 308.54°)
OKLaboklab(25.66% 0.0422 -0.1059)
OKLCHoklch(25.66% 0.114 291.7)
XYZxyz(2.6218, 1.4419, 8.5260)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271054 #3D5410
analogous
#101B54 #271054 #491054
triadic
#271054 #542710 #105427
tetradic
#271054 #54101B #3D5410 #105449
square
#271054 #54101B #3D5410 #105449
split-complementary
#271054 #544910 #1B5410
monochromatic
#0C051A #0F0621 #271054 #3F1A87 #5724BB

Accessibility & contrast

On white

16.30
#271054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#271054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271054
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271054#FFFFFF#000000##FFFFFF
##2710541.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002156
Deuteranopia (green-blind)
#001F53
Tritanopia (blue-blind)
#182231
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271054;
/* rgb */ color: rgb(39, 16, 84);
/* oklch */ color: oklch(25.7% 0.114 291.7);
Tailwind
colors: {
  custom: {
    50: '#675185',
    500: '#271054',
    950: '#000000',
  },
}
SCSS
$custom: #271054;
$custom-light: #675185;
$custom-dark: #000000;
JSON
{
  "hex": "#271054",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 260.294,
    "s": 68,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25656,
    "c": 0.11397,
    "h": 291.7
  },
  "luminance": 0.01442
}

Semantic roles & 50–950 ramp

primary
#271054
secondary
#6F8E32
accent
#EB3DB0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #271054

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

Preview Lab → · Contrast checker → · Palette generator →

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