#321F7D#321F7D

#321F7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.149 H 284.0°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#321F7D
RGBrgb(50, 31, 125)
HSLhsl(252, 60%, 31%)
HSVhsv(252, 75%, 49%)
CMYKcmyk(60%, 75.2%, 0%, 51%)
CIE-LABlab(20.59, 35.75, -50.06)
CIE-LCHlch(20.59, 61.51, 305.53°)
OKLaboklab(33.11% 0.0361 -0.1442)
OKLCHoklch(33.11% 0.149 284)
XYZxyz(5.5059, 3.1384, 19.7137)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F7D #6A7D1F
analogous
#1F3B7D #321F7D #611F7D
triadic
#321F7D #7D321F #1F7D32
tetradic
#321F7D #7D1F3B #6A7D1F #1F7D61
square
#321F7D #7D1F3B #6A7D1F #1F7D61
split-complementary
#321F7D #7D611F #3B7D1F
monochromatic
#0B071B #1E134C #321F7D #462BAE #6245D1

Accessibility & contrast

On white

12.90
#321F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#321F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F7D
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F7D#FFFFFF#000000##FFFFFF
##321F7D1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#08394C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #321f7d;
/* rgb */ color: rgb(50, 31, 125);
/* oklch */ color: oklch(33.1% 0.149 284.0);
Tailwind
colors: {
  custom: {
    50: '#735da4',
    500: '#321f7d',
    950: '#000000',
  },
}
SCSS
$custom: #321f7d;
$custom-light: #735da4;
$custom-dark: #000000;
JSON
{
  "hex": "#321f7d",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 252.128,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33112,
    "c": 0.14861,
    "h": 284
  },
  "luminance": 0.03139
}

Semantic roles & 50–950 ramp

primary
#321F7D
secondary
#9BB048
accent
#E344C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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