#321342#321342

#321342 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.089 H 312.2°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#321342
RGBrgb(50, 19, 66)
HSLhsl(280, 55%, 17%)
HSVhsv(280, 71%, 26%)
CMYKcmyk(24.2%, 71.2%, 0%, 74.1%)
CIE-LABlab(12.84, 25.00, -23.37)
CIE-LCHlch(12.84, 34.22, 316.92°)
OKLaboklab(25.94% 0.0597 -0.0658)
OKLCHoklch(25.94% 0.089 312.2)
XYZxyz(2.5315, 1.5373, 5.3166)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321342 #234213
analogous
#1B1342 #321342 #42133B
triadic
#321342 #423213 #134232
tetradic
#321342 #421B13 #234213 #133B42
square
#321342 #421B13 #234213 #133B42
split-complementary
#321342 #3B4213 #13421B
monochromatic
#120718 #120718 #321342 #562172 #7A2EA1

Accessibility & contrast

On white

16.06
#321342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#321342 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321342
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321342#FFFFFF#000000##FFFFFF
##3213421.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022043
Deuteranopia (green-blind)
#0F2241
Tritanopia (blue-blind)
#301C28
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #321342;
/* rgb */ color: rgb(50, 19, 66);
/* oklch */ color: oklch(25.9% 0.089 312.2);
Tailwind
colors: {
  custom: {
    50: '#6c5377',
    500: '#321342',
    950: '#000000',
  },
}
SCSS
$custom: #321342;
$custom-light: #6c5377;
$custom-dark: #000000;
JSON
{
  "hex": "#321342",
  "rgb": {
    "r": 50,
    "g": 19,
    "b": 66
  },
  "hsl": {
    "h": 279.574,
    "s": 55.294,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25944,
    "c": 0.0888,
    "h": 312.2
  },
  "luminance": 0.01537
}

Semantic roles & 50–950 ramp

primary
#321342
secondary
#4D7B36
accent
#DF497C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #321342

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

Preview Lab → · Contrast checker → · Palette generator →

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