#271284#271284

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

Color values

HEX#271284
RGBrgb(39, 18, 132)
HSLhsl(251, 76%, 29%)
HSVhsv(251, 86%, 52%)
CMYKcmyk(70.5%, 86.4%, 0%, 48.2%)
CIE-LABlab(18.05, 43.24, -58.72)
CIE-LCHlch(18.05, 72.92, 306.37°)
OKLaboklab(31.32% 0.0247 -0.1696)
OKLCHoklch(31.32% 0.171 278.3)
XYZxyz(5.2165, 2.5294, 22.0386)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271284 #6F8412
analogous
#123684 #271284 #601284
triadic
#271284 #842712 #128427
tetradic
#271284 #841236 #6F8412 #128460
square
#271284 #841236 #6F8412 #128460
split-complementary
#271284 #846012 #368412
monochromatic
#08041B #170B4E #271284 #3719BA #4F2EE2

Accessibility & contrast

On white

13.94
#271284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271284
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271284#FFFFFF#000000##FFFFFF
##2712841.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003087
Deuteranopia (green-blind)
#002782
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271284;
/* rgb */ color: rgb(39, 18, 132);
/* oklch */ color: oklch(31.3% 0.171 278.3);
Tailwind
colors: {
  custom: {
    50: '#7155a9',
    500: '#271284',
    950: '#000000',
  },
}
SCSS
$custom: #271284;
$custom-light: #7155a9;
$custom-dark: #000000;
JSON
{
  "hex": "#271284",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 132
  },
  "hsl": {
    "h": 251.053,
    "s": 76,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31317,
    "c": 0.17136,
    "h": 278.3
  },
  "luminance": 0.0253
}

Semantic roles & 50–950 ramp

primary
#271284
secondary
#A2B939
accent
#F335D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271284

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

Preview Lab → · Contrast checker → · Palette generator →

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