#321E7E#321E7E

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

Color values

HEX#321E7E
RGBrgb(50, 30, 126)
HSLhsl(253, 62%, 31%)
HSVhsv(253, 76%, 49%)
CMYKcmyk(60.3%, 76.2%, 0%, 50.6%)
CIE-LABlab(20.49, 36.63, -50.86)
CIE-LCHlch(20.49, 62.68, 305.76°)
OKLaboklab(33.07% 0.0366 -0.1465)
OKLCHoklch(33.07% 0.151 284)
XYZxyz(5.5444, 3.1127, 20.0433)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E7E #6A7E1E
analogous
#1E3A7E #321E7E #621E7E
triadic
#321E7E #7E321E #1E7E32
tetradic
#321E7E #7E1E3A #6A7E1E #1E7E62
square
#321E7E #7E1E3A #6A7E1E #1E7E62
split-complementary
#321E7E #7E621E #3A7E1E
monochromatic
#0B061B #1E124D #321E7E #462AAF #6244D2

Accessibility & contrast

On white

12.94
#321E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#321E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E7E
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E7E#FFFFFF#000000##FFFFFF
##321E7E1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#06394C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321e7e;
/* rgb */ color: rgb(50, 30, 126);
/* oklch */ color: oklch(33.1% 0.151 284.0);
Tailwind
colors: {
  custom: {
    50: '#745ca4',
    500: '#321e7e',
    950: '#000000',
  },
}
SCSS
$custom: #321e7e;
$custom-light: #745ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#321e7e",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 252.5,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33072,
    "c": 0.15102,
    "h": 284
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#321E7E
secondary
#9BB147
accent
#E543C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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