#271380#271380

#271380 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.166 H 278.9°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#271380
RGBrgb(39, 19, 128)
HSLhsl(251, 74%, 29%)
HSVhsv(251, 85%, 50%)
CMYKcmyk(69.5%, 85.2%, 0%, 49.8%)
CIE-LABlab(17.71, 41.58, -56.74)
CIE-LCHlch(17.71, 70.35, 306.23°)
OKLaboklab(30.94% 0.0256 -0.1639)
OKLCHoklch(30.94% 0.166 278.9)
XYZxyz(4.9646, 2.4552, 20.6302)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271380 #6C8013
analogous
#133680 #271380 #5E1380
triadic
#271380 #802713 #138027
tetradic
#271380 #801336 #6C8013 #13805E
square
#271380 #801336 #6C8013 #13805E
split-complementary
#271380 #805E13 #368013
monochromatic
#08041B #170B4B #271380 #371BB5 #4E2DE0

Accessibility & contrast

On white

14.08
#271380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#271380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271380
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271380#FFFFFF#000000##FFFFFF
##2713801.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00277E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271380;
/* rgb */ color: rgb(39, 19, 128);
/* oklch */ color: oklch(30.9% 0.166 278.9);
Tailwind
colors: {
  custom: {
    50: '#7055a6',
    500: '#271380',
    950: '#000000',
  },
}
SCSS
$custom: #271380;
$custom-light: #7055a6;
$custom-dark: #000000;
JSON
{
  "hex": "#271380",
  "rgb": {
    "r": 39,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 251.009,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30944,
    "c": 0.16585,
    "h": 278.9
  },
  "luminance": 0.02456
}

Semantic roles & 50–950 ramp

primary
#271380
secondary
#9FB539
accent
#F137CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #271380

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

Preview Lab → · Contrast checker → · Palette generator →

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