#321374#321374

#321374 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.150 H 288.6°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#321374
RGBrgb(50, 19, 116)
HSLhsl(259, 72%, 26%)
HSVhsv(259, 84%, 45%)
CMYKcmyk(56.9%, 83.6%, 0%, 54.5%)
CIE-LABlab(17.48, 39.20, -49.41)
CIE-LCHlch(17.48, 63.07, 308.43°)
OKLaboklab(30.65% 0.0479 -0.1422)
OKLCHoklch(30.65% 0.15 288.6)
XYZxyz(4.6997, 2.4046, 16.7361)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321374 #557413
analogous
#132574 #321374 #631374
triadic
#321374 #743213 #137432
tetradic
#321374 #741325 #557413 #137463
square
#321374 #741325 #557413 #137463
split-complementary
#321374 #746313 #257413
monochromatic
#0B041A #1B0A3F #321374 #491CA9 #6026DB

Accessibility & contrast

On white

14.18
#321374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#321374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321374
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321374#FFFFFF#000000##FFFFFF
##3213741.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#173044
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321374;
/* rgb */ color: rgb(50, 19, 116);
/* oklch */ color: oklch(30.7% 0.150 288.6);
Tailwind
colors: {
  custom: {
    50: '#73569d',
    500: '#321374',
    950: '#000000',
  },
}
SCSS
$custom: #321374;
$custom-light: #73569d;
$custom-dark: #000000;
JSON
{
  "hex": "#321374",
  "rgb": {
    "r": 50,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 259.175,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30652,
    "c": 0.15001,
    "h": 288.6
  },
  "luminance": 0.02405
}

Semantic roles & 50–950 ramp

primary
#321374
secondary
#86AA38
accent
#EF39B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321374

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

Preview Lab → · Contrast checker → · Palette generator →

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