#321370#321370

#321370 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.145 H 289.8°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#321370
RGBrgb(50, 19, 112)
HSLhsl(260, 71%, 26%)
HSVhsv(260, 83%, 44%)
CMYKcmyk(55.4%, 83%, 0%, 56.1%)
CIE-LABlab(17.05, 38.03, -47.52)
CIE-LCHlch(17.05, 60.87, 308.67°)
OKLaboklab(30.23% 0.0493 -0.1366)
OKLCHoklch(30.23% 0.145 289.8)
XYZxyz(4.4720, 2.3135, 15.5370)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321370 #517013
analogous
#132270 #321370 #601370
triadic
#321370 #703213 #137032
tetradic
#321370 #701322 #517013 #137060
square
#321370 #701322 #517013 #137060
split-complementary
#321370 #706013 #227013
monochromatic
#0C041A #1B0A3C #321370 #491CA4 #6125D9

Accessibility & contrast

On white

14.36
#321370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#321370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321370
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321370#FFFFFF#000000##FFFFFF
##3213701.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#1A2E42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321370;
/* rgb */ color: rgb(50, 19, 112);
/* oklch */ color: oklch(30.2% 0.145 289.8);
Tailwind
colors: {
  custom: {
    50: '#72559a',
    500: '#321370',
    950: '#000000',
  },
}
SCSS
$custom: #321370;
$custom-light: #72559a;
$custom-dark: #000000;
JSON
{
  "hex": "#321370",
  "rgb": {
    "r": 50,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 260,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30227,
    "c": 0.14527,
    "h": 289.8
  },
  "luminance": 0.02314
}

Semantic roles & 50–950 ramp

primary
#321370
secondary
#82A738
accent
#EE3AB2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321370

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

Preview Lab → · Contrast checker → · Palette generator →

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