#271581#271581

#271581 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.165 H 278.5°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#271581
RGBrgb(39, 21, 129)
HSLhsl(250, 72%, 29%)
HSVhsv(250, 84%, 51%)
CMYKcmyk(69.8%, 83.7%, 0%, 49.4%)
CIE-LABlab(18.15, 40.96, -56.65)
CIE-LCHlch(18.15, 69.91, 305.87°)
OKLaboklab(31.28% 0.0244 -0.1636)
OKLCHoklch(31.28% 0.165 278.5)
XYZxyz(5.0660, 2.5522, 20.9903)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271581 #6F8115
analogous
#153981 #271581 #5D1581
triadic
#271581 #812715 #158127
tetradic
#271581 #811539 #6F8115 #15815D
square
#271581 #811539 #6F8115 #15815D
split-complementary
#271581 #815D15 #398115
monochromatic
#08041A #170C4C #271581 #371EB6 #4F33DE

Accessibility & contrast

On white

13.90
#271581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271581
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271581#FFFFFF#000000##FFFFFF
##2715811.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271581;
/* rgb */ color: rgb(39, 21, 129);
/* oklch */ color: oklch(31.3% 0.165 278.5);
Tailwind
colors: {
  custom: {
    50: '#7057a7',
    500: '#271581',
    950: '#000000',
  },
}
SCSS
$custom: #271581;
$custom-light: #7057a7;
$custom-dark: #000000;
JSON
{
  "hex": "#271581",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 250,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31281,
    "c": 0.16543,
    "h": 278.5
  },
  "luminance": 0.02553
}

Semantic roles & 50–950 ramp

primary
#271581
secondary
#A2B63C
accent
#EF39D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271581

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

Preview Lab → · Contrast checker → · Palette generator →

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