#271480#271480

#271480 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.165 H 278.8°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#271480
RGBrgb(39, 20, 128)
HSLhsl(251, 73%, 29%)
HSVhsv(251, 84%, 50%)
CMYKcmyk(69.5%, 84.4%, 0%, 49.8%)
CIE-LABlab(17.87, 41.12, -56.48)
CIE-LCHlch(17.87, 69.87, 306.06°)
OKLaboklab(31.05% 0.0252 -0.1631)
OKLCHoklch(31.05% 0.165 278.8)
XYZxyz(4.9819, 2.4897, 20.6359)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271480 #6D8014
analogous
#143780 #271480 #5D1480
triadic
#271480 #802714 #148027
tetradic
#271480 #801437 #6D8014 #14805D
square
#271480 #801437 #6D8014 #14805D
split-complementary
#271480 #805D14 #378014
monochromatic
#08041A #170C4B #271480 #371CB5 #4F30DF

Accessibility & contrast

On white

14.02
#271480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#271480 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271480
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271480#FFFFFF#000000##FFFFFF
##2714801.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00277E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271480;
/* rgb */ color: rgb(39, 20, 128);
/* oklch */ color: oklch(31.1% 0.165 278.8);
Tailwind
colors: {
  custom: {
    50: '#7056a6',
    500: '#271480',
    950: '#000000',
  },
}
SCSS
$custom: #271480;
$custom-light: #7056a6;
$custom-dark: #000000;
JSON
{
  "hex": "#271480",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 250.556,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31052,
    "c": 0.16505,
    "h": 278.8
  },
  "luminance": 0.0249
}

Semantic roles & 50–950 ramp

primary
#271480
secondary
#A0B53B
accent
#F038CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #271480

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

Preview Lab → · Contrast checker → · Palette generator →

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