#321F7A#321F7A

#321F7A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.145 H 284.7°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#321F7A
RGBrgb(50, 31, 122)
HSLhsl(253, 59%, 30%)
HSVhsv(253, 75%, 48%)
CMYKcmyk(59%, 74.6%, 0%, 52.2%)
CIE-LABlab(20.29, 34.79, -48.63)
CIE-LCHlch(20.29, 59.80, 305.58°)
OKLaboklab(32.81% 0.0367 -0.14)
OKLCHoklch(32.81% 0.145 284.7)
XYZxyz(5.3172, 3.0629, 18.7196)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F7A #677A1F
analogous
#1F3A7A #321F7A #5F1F7A
triadic
#321F7A #7A321F #1F7A32
tetradic
#321F7A #7A1F3A #677A1F #1F7A5F
square
#321F7A #7A1F3A #677A1F #1F7A5F
split-complementary
#321F7A #7A5F1F #3A7A1F
monochromatic
#0A0618 #1E1349 #321F7A #462BAB #6144CF

Accessibility & contrast

On white

13.02
#321F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#321F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F7A
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F7A#FFFFFF#000000##FFFFFF
##321F7A1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#0D384A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321f7a;
/* rgb */ color: rgb(50, 31, 122);
/* oklch */ color: oklch(32.8% 0.145 284.7);
Tailwind
colors: {
  custom: {
    50: '#735da1',
    500: '#321f7a',
    950: '#000000',
  },
}
SCSS
$custom: #321f7a;
$custom-light: #735da1;
$custom-dark: #000000;
JSON
{
  "hex": "#321f7a",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 252.527,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.32812,
    "c": 0.14474,
    "h": 284.7
  },
  "luminance": 0.03063
}

Semantic roles & 50–950 ramp

primary
#321F7A
secondary
#98AD47
accent
#E345C2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321F7A

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

Preview Lab → · Contrast checker → · Palette generator →

#321F7A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva