#271482#271482

#271482 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.167 H 278.4°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#271482
RGBrgb(39, 20, 130)
HSLhsl(250, 73%, 29%)
HSVhsv(250, 85%, 51%)
CMYKcmyk(70%, 84.6%, 0%, 49%)
CIE-LABlab(18.11, 41.74, -57.35)
CIE-LCHlch(18.11, 70.93, 306.04°)
OKLaboklab(31.29% 0.0245 -0.1656)
OKLCHoklch(31.29% 0.167 278.4)
XYZxyz(5.1148, 2.5429, 21.3360)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271482 #6F8214
analogous
#143882 #271482 #5E1482
triadic
#271482 #822714 #148227
tetradic
#271482 #821438 #6F8214 #14825E
square
#271482 #821438 #6F8214 #14825E
split-complementary
#271482 #825E14 #388214
monochromatic
#08041B #170C4D #271482 #371CB7 #4F31DF

Accessibility & contrast

On white

13.92
#271482 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271482
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271482#FFFFFF#000000##FFFFFF
##2714821.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003085
Deuteranopia (green-blind)
#002880
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271482;
/* rgb */ color: rgb(39, 20, 130);
/* oklch */ color: oklch(31.3% 0.167 278.4);
Tailwind
colors: {
  custom: {
    50: '#7056a8',
    500: '#271482',
    950: '#000000',
  },
}
SCSS
$custom: #271482;
$custom-light: #7056a8;
$custom-dark: #000000;
JSON
{
  "hex": "#271482",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 130
  },
  "hsl": {
    "h": 250.364,
    "s": 73.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31288,
    "c": 0.16745,
    "h": 278.4
  },
  "luminance": 0.02543
}

Semantic roles & 50–950 ramp

primary
#271482
secondary
#A2B73B
accent
#F038D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271482

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

Preview Lab → · Contrast checker → · Palette generator →

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