#321E4A#321E4A

#321E4A is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.4% C 0.080 H 302.6°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#321E4A
RGBrgb(50, 30, 74)
HSLhsl(267, 42%, 20%)
HSVhsv(267, 59%, 29%)
CMYKcmyk(32.4%, 59.5%, 0%, 71%)
CIE-LABlab(16.01, 20.31, -23.86)
CIE-LCHlch(16.01, 31.34, 310.41°)
OKLaboklab(28.44% 0.0431 -0.0673)
OKLCHoklch(28.44% 0.08 302.6)
XYZxyz(3.0154, 2.1011, 6.7239)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E4A #364A1E
analogous
#1E204A #321E4A #481E4A
triadic
#321E4A #4A321E #1E4A32
tetradic
#321E4A #4A1E20 #364A1E #1E4A48
square
#321E4A #4A1E20 #364A1E #1E4A48
split-complementary
#321E4A #4A481E #204A1E
monochromatic
#0F0916 #150C1E #321E4A #4F3076 #6D41A1

Accessibility & contrast

On white

14.79
#321E4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#321E4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E4A
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E4A#FFFFFF#000000##FFFFFF
##321E4A1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E274B
Deuteranopia (green-blind)
#152849
Tritanopia (blue-blind)
#2E2630
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321e4a;
/* rgb */ color: rgb(50, 30, 74);
/* oklch */ color: oklch(28.4% 0.080 302.6);
Tailwind
colors: {
  custom: {
    50: '#6c5a7d',
    500: '#321e4a',
    950: '#000000',
  },
}
SCSS
$custom: #321e4a;
$custom-light: #6c5a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#321e4a",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 74
  },
  "hsl": {
    "h": 267.273,
    "s": 42.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28443,
    "c": 0.07986,
    "h": 302.6
  },
  "luminance": 0.02101
}

Semantic roles & 50–950 ramp

primary
#321E4A
secondary
#657F45
accent
#D2569A
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070409
muted
#7A797B

Preview Lab

Preview with #321E4A

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

Preview Lab → · Contrast checker → · Palette generator →

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