#321D7B#321D7B

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

Color values

HEX#321D7B
RGBrgb(50, 29, 123)
HSLhsl(253, 62%, 30%)
HSVhsv(253, 76%, 48%)
CMYKcmyk(59.3%, 76.4%, 0%, 51.8%)
CIE-LABlab(19.99, 36.24, -49.77)
CIE-LCHlch(19.99, 61.56, 306.06°)
OKLaboklab(32.63% 0.0382 -0.1433)
OKLCHoklch(32.63% 0.148 284.9)
XYZxyz(5.3288, 2.9866, 19.0307)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D7B #667B1D
analogous
#1D377B #321D7B #611D7B
triadic
#321D7B #7B321D #1D7B32
tetradic
#321D7B #7B1D37 #667B1D #1D7B61
square
#321D7B #7B1D37 #667B1D #1D7B61
split-complementary
#321D7B #7B611D #377B1D
monochromatic
#0A0619 #1E1149 #321D7B #4629AD #6140D2

Accessibility & contrast

On white

13.15
#321D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321D7B
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D7B#FFFFFF#000000##FFFFFF
##321D7B1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#0C374A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321d7b;
/* rgb */ color: rgb(50, 29, 123);
/* oklch */ color: oklch(32.6% 0.148 284.9);
Tailwind
colors: {
  custom: {
    50: '#735ba2',
    500: '#321d7b',
    950: '#000000',
  },
}
SCSS
$custom: #321d7b;
$custom-light: #735ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#321d7b",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 253.404,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32627,
    "c": 0.14832,
    "h": 284.9
  },
  "luminance": 0.02987
}

Semantic roles & 50–950 ramp

primary
#321D7B
secondary
#97AF45
accent
#E543C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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