#271580#271580

#271580 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.164 H 278.6°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#271580
RGBrgb(39, 21, 128)
HSLhsl(250, 72%, 29%)
HSVhsv(250, 84%, 50%)
CMYKcmyk(69.5%, 83.6%, 0%, 49.8%)
CIE-LABlab(18.03, 40.64, -56.21)
CIE-LCHlch(18.03, 69.37, 305.87°)
OKLaboklab(31.17% 0.0247 -0.1623)
OKLCHoklch(31.17% 0.164 278.6)
XYZxyz(4.9999, 2.5258, 20.6419)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271580 #6E8015
analogous
#153980 #271580 #5D1580
triadic
#271580 #802715 #158027
tetradic
#271580 #801539 #6E8015 #15805D
square
#271580 #801539 #6E8015 #15805D
split-complementary
#271580 #805D15 #398015
monochromatic
#08041A #170C4B #271580 #371EB5 #4F32DD

Accessibility & contrast

On white

13.95
#271580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#271580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271580
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271580#FFFFFF#000000##FFFFFF
##2715801.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271580;
/* rgb */ color: rgb(39, 21, 128);
/* oklch */ color: oklch(31.2% 0.164 278.6);
Tailwind
colors: {
  custom: {
    50: '#7056a6',
    500: '#271580',
    950: '#000000',
  },
}
SCSS
$custom: #271580;
$custom-light: #7056a6;
$custom-dark: #000000;
JSON
{
  "hex": "#271580",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 250.093,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31165,
    "c": 0.16422,
    "h": 278.6
  },
  "luminance": 0.02526
}

Semantic roles & 50–950 ramp

primary
#271580
secondary
#A1B53C
accent
#EF39D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #271580

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

Preview Lab → · Contrast checker → · Palette generator →

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