#321E7B#321E7B

#321E7B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.147 H 284.7°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#321E7B
RGBrgb(50, 30, 123)
HSLhsl(253, 61%, 30%)
HSVhsv(253, 76%, 48%)
CMYKcmyk(59.3%, 75.6%, 0%, 51.8%)
CIE-LABlab(20.19, 35.68, -49.44)
CIE-LCHlch(20.19, 60.97, 305.81°)
OKLaboklab(32.77% 0.0374 -0.1424)
OKLCHoklch(32.77% 0.147 284.7)
XYZxyz(5.3537, 3.0364, 19.0390)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E7B #677B1E
analogous
#1E397B #321E7B #601E7B
triadic
#321E7B #7B321E #1E7B32
tetradic
#321E7B #7B1E39 #677B1E #1E7B60
square
#321E7B #7B1E39 #677B1E #1E7B60
split-complementary
#321E7B #7B601E #397B1E
monochromatic
#0A0619 #1E124A #321E7B #462AAC #6142D1

Accessibility & contrast

On white

13.06
#321E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#321E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E7B
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E7B#FFFFFF#000000##FFFFFF
##321E7B1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321e7b;
/* rgb */ color: rgb(50, 30, 123);
/* oklch */ color: oklch(32.8% 0.147 284.7);
Tailwind
colors: {
  custom: {
    50: '#735ca2',
    500: '#321e7b',
    950: '#000000',
  },
}
SCSS
$custom: #321e7b;
$custom-light: #735ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#321e7b",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 252.903,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.32768,
    "c": 0.14719,
    "h": 284.7
  },
  "luminance": 0.03037
}

Semantic roles & 50–950 ramp

primary
#321E7B
secondary
#98AE46
accent
#E444C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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