#321F70#321F70

#321F70 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.132 H 287.2°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#321F70
RGBrgb(50, 31, 112)
HSLhsl(254, 57%, 28%)
HSVhsv(254, 72%, 44%)
CMYKcmyk(55.4%, 72.3%, 0%, 56.1%)
CIE-LABlab(19.34, 31.57, -43.77)
CIE-LCHlch(19.34, 53.97, 305.80°)
OKLaboklab(31.84% 0.0388 -0.1257)
OKLCHoklch(31.84% 0.132 287.2)
XYZxyz(4.7291, 2.8277, 15.6227)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F70 #5D701F
analogous
#1F3470 #321F70 #5A1F70
triadic
#321F70 #70321F #1F7032
tetradic
#321F70 #701F34 #5D701F #1F705A
square
#321F70 #701F34 #5D701F #1F705A
split-complementary
#321F70 #705A1F #34701F
monochromatic
#0B0718 #1D1240 #321F70 #472CA0 #603FCA

Accessibility & contrast

On white

13.41
#321F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#321F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F70
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F70#FFFFFF#000000##FFFFFF
##321F701.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#1A3445
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321f70;
/* rgb */ color: rgb(50, 31, 112);
/* oklch */ color: oklch(31.8% 0.132 287.2);
Tailwind
colors: {
  custom: {
    50: '#715c9a',
    500: '#321f70',
    950: '#000000',
  },
}
SCSS
$custom: #321f70;
$custom-light: #715c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#321f70",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 112
  },
  "hsl": {
    "h": 254.074,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31839,
    "c": 0.13161,
    "h": 287.2
  },
  "luminance": 0.02828
}

Semantic roles & 50–950 ramp

primary
#321F70
secondary
#8EA447
accent
#E048BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321F70

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

Preview Lab → · Contrast checker → · Palette generator →

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