#321371#321371

#321371 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.146 H 289.5°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#321371
RGBrgb(50, 19, 113)
HSLhsl(260, 71%, 26%)
HSVhsv(260, 83%, 44%)
CMYKcmyk(55.8%, 83.2%, 0%, 55.7%)
CIE-LABlab(17.16, 38.33, -48.00)
CIE-LCHlch(17.16, 61.42, 308.61°)
OKLaboklab(30.33% 0.0489 -0.138)
OKLCHoklch(30.33% 0.146 289.5)
XYZxyz(4.5280, 2.3359, 15.8319)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321371 #527113
analogous
#132371 #321371 #611371
triadic
#321371 #713213 #137132
tetradic
#321371 #711323 #527113 #137161
square
#321371 #711323 #527113 #137161
split-complementary
#321371 #716113 #237113
monochromatic
#0C041A #1B0A3D #321371 #491CA5 #6025DA

Accessibility & contrast

On white

14.31
#321371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#321371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321371
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321371#FFFFFF#000000##FFFFFF
##3213711.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#1A2F42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321371;
/* rgb */ color: rgb(50, 19, 113);
/* oklch */ color: oklch(30.3% 0.146 289.5);
Tailwind
colors: {
  custom: {
    50: '#72559b',
    500: '#321371',
    950: '#000000',
  },
}
SCSS
$custom: #321371;
$custom-light: #72559b;
$custom-dark: #000000;
JSON
{
  "hex": "#321371",
  "rgb": {
    "r": 50,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 259.787,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30332,
    "c": 0.14646,
    "h": 289.5
  },
  "luminance": 0.02336
}

Semantic roles & 50–950 ramp

primary
#321371
secondary
#83A838
accent
#EE3AB3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321371

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

Preview Lab → · Contrast checker → · Palette generator →

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