#321F7C#321F7C

#321F7C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.147 H 284.3°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#321F7C
RGBrgb(50, 31, 124)
HSLhsl(252, 60%, 30%)
HSVhsv(252, 75%, 49%)
CMYKcmyk(59.7%, 75%, 0%, 51.4%)
CIE-LABlab(20.49, 35.43, -49.59)
CIE-LCHlch(20.49, 60.94, 305.55°)
OKLaboklab(33.01% 0.0363 -0.1428)
OKLCHoklch(33.01% 0.147 284.3)
XYZxyz(5.4424, 3.1130, 19.3790)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F7C #697C1F
analogous
#1F3A7C #321F7C #601F7C
triadic
#321F7C #7C321F #1F7C32
tetradic
#321F7C #7C1F3A #697C1F #1F7C60
square
#321F7C #7C1F3A #697C1F #1F7C60
split-complementary
#321F7C #7C601F #3A7C1F
monochromatic
#0B071A #1E134B #321F7C #462BAD #6145D0

Accessibility & contrast

On white

12.94
#321F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#321F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F7C
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F7C#FFFFFF#000000##FFFFFF
##321F7C1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#0A384B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321f7c;
/* rgb */ color: rgb(50, 31, 124);
/* oklch */ color: oklch(33.0% 0.147 284.3);
Tailwind
colors: {
  custom: {
    50: '#735da3',
    500: '#321f7c',
    950: '#000000',
  },
}
SCSS
$custom: #321f7c;
$custom-light: #735da3;
$custom-dark: #000000;
JSON
{
  "hex": "#321f7c",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 252.258,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33012,
    "c": 0.14733,
    "h": 284.3
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#321F7C
secondary
#9AAF48
accent
#E345C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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