#321381#321381

#321381 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.1% C 0.165 H 285.1°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#321381
RGBrgb(50, 19, 129)
HSLhsl(257, 74%, 29%)
HSVhsv(257, 85%, 51%)
CMYKcmyk(61.2%, 85.3%, 0%, 49.4%)
CIE-LABlab(18.92, 42.98, -55.34)
CIE-LCHlch(18.92, 70.07, 307.83°)
OKLaboklab(32.07% 0.0431 -0.1595)
OKLCHoklch(32.07% 0.165 285.1)
XYZxyz(5.5095, 2.7285, 21.0010)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321381 #628113
analogous
#132B81 #321381 #691381
triadic
#321381 #813213 #138132
tetradic
#321381 #81132B #628113 #138169
square
#321381 #81132B #628113 #138169
split-complementary
#321381 #816913 #2B8113
monochromatic
#0A041B #1D0B4C #321381 #471BB6 #602EE0

Accessibility & contrast

On white

13.59
#321381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#321381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321381
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321381#FFFFFF#000000##FFFFFF
##3213811.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#01354C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321381;
/* rgb */ color: rgb(50, 19, 129);
/* oklch */ color: oklch(32.1% 0.165 285.1);
Tailwind
colors: {
  custom: {
    50: '#7557a7',
    500: '#321381',
    950: '#000000',
  },
}
SCSS
$custom: #321381;
$custom-light: #7557a7;
$custom-dark: #000000;
JSON
{
  "hex": "#321381",
  "rgb": {
    "r": 50,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 256.909,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32075,
    "c": 0.16522,
    "h": 285.1
  },
  "luminance": 0.02729
}

Semantic roles & 50–950 ramp

primary
#321381
secondary
#93B63A
accent
#F137BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #321381

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

Preview Lab → · Contrast checker → · Palette generator →

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