#271485#271485

#271485 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.171 H 277.9°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#271485
RGBrgb(39, 20, 133)
HSLhsl(250, 74%, 30%)
HSVhsv(250, 85%, 52%)
CMYKcmyk(70.7%, 85%, 0%, 47.8%)
CIE-LABlab(18.47, 42.66, -58.65)
CIE-LCHlch(18.47, 72.52, 306.03°)
OKLaboklab(31.64% 0.0235 -0.1694)
OKLCHoklch(31.64% 0.171 277.9)
XYZxyz(5.3191, 2.6246, 22.4120)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271485 #728514
analogous
#143A85 #271485 #5F1485
triadic
#271485 #852714 #148527
tetradic
#271485 #85143A #728514 #14855F
square
#271485 #85143A #728514 #14855F
split-complementary
#271485 #855F14 #3A8514
monochromatic
#08041B #170C50 #271485 #371CBA #5033E0

Accessibility & contrast

On white

13.77
#271485 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#271485 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271485
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271485#FFFFFF#000000##FFFFFF
##2714851.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003188
Deuteranopia (green-blind)
#002883
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271485;
/* rgb */ color: rgb(39, 20, 133);
/* oklch */ color: oklch(31.6% 0.171 277.9);
Tailwind
colors: {
  custom: {
    50: '#7156aa',
    500: '#271485',
    950: '#000000',
  },
}
SCSS
$custom: #271485;
$custom-light: #7156aa;
$custom-dark: #000000;
JSON
{
  "hex": "#271485",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 133
  },
  "hsl": {
    "h": 250.088,
    "s": 73.856,
    "l": 30
  },
  "oklch": {
    "l": 0.31642,
    "c": 0.17104,
    "h": 277.9
  },
  "luminance": 0.02625
}

Semantic roles & 50–950 ramp

primary
#271485
secondary
#A4BA3B
accent
#F137D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271485

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

Preview Lab → · Contrast checker → · Palette generator →

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