#321F78#321F78

#321F78 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.142 H 285.2°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#321F78
RGBrgb(50, 31, 120)
HSLhsl(253, 59%, 30%)
HSVhsv(253, 74%, 47%)
CMYKcmyk(58.3%, 74.2%, 0%, 52.9%)
CIE-LABlab(20.10, 34.15, -47.68)
CIE-LCHlch(20.10, 58.64, 305.61°)
OKLaboklab(32.61% 0.0372 -0.1372)
OKLCHoklch(32.61% 0.142 285.2)
XYZxyz(5.1945, 3.0138, 18.0737)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F78 #65781F
analogous
#1F3978 #321F78 #5F1F78
triadic
#321F78 #78321F #1F7832
tetradic
#321F78 #781F39 #65781F #1F785F
square
#321F78 #781F39 #65781F #1F785F
split-complementary
#321F78 #785F1F #39781F
monochromatic
#0A0618 #1E1247 #321F78 #462CA9 #6143CE

Accessibility & contrast

On white

13.10
#321F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#321F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F78
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F78#FFFFFF#000000##FFFFFF
##321F781.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#113749
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321f78;
/* rgb */ color: rgb(50, 31, 120);
/* oklch */ color: oklch(32.6% 0.142 285.2);
Tailwind
colors: {
  custom: {
    50: '#725da0',
    500: '#321f78',
    950: '#000000',
  },
}
SCSS
$custom: #321f78;
$custom-light: #725da0;
$custom-dark: #000000;
JSON
{
  "hex": "#321f78",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 252.809,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32614,
    "c": 0.14214,
    "h": 285.2
  },
  "luminance": 0.03014
}

Semantic roles & 50–950 ramp

primary
#321F78
secondary
#96AB47
accent
#E246C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #321F78

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

Preview Lab → · Contrast checker → · Palette generator →

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