#321C4E#321C4E

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

Color values

HEX#321C4E
RGBrgb(50, 28, 78)
HSLhsl(266, 47%, 21%)
HSVhsv(266, 64%, 31%)
CMYKcmyk(35.9%, 64.1%, 0%, 69.4%)
CIE-LABlab(15.79, 22.81, -26.95)
CIE-LCHlch(15.79, 35.31, 310.24°)
OKLaboklab(28.38% 0.0462 -0.0763)
OKLCHoklch(28.38% 0.089 301.2)
XYZxyz(3.1055, 2.0587, 7.4400)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C4E #384E1C
analogous
#1C1F4E #321C4E #4B1C4E
triadic
#321C4E #4E321C #1C4E32
tetradic
#321C4E #4E1C1F #384E1C #1C4E4B
square
#321C4E #4E1C1F #384E1C #1C4E4B
split-complementary
#321C4E #4E4B1C #1F4E1C
monochromatic
#0E0817 #150C21 #321C4E #4F2C7B #6C3CA8

Accessibility & contrast

On white

14.87
#321C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#321C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C4E
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C4E#FFFFFF#000000##FFFFFF
##321C4E1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052750
Deuteranopia (green-blind)
#0E274D
Tritanopia (blue-blind)
#2C2632
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321c4e;
/* rgb */ color: rgb(50, 28, 78);
/* oklch */ color: oklch(28.4% 0.089 301.2);
Tailwind
colors: {
  custom: {
    50: '#6c5980',
    500: '#321c4e',
    950: '#000000',
  },
}
SCSS
$custom: #321c4e;
$custom-light: #6c5980;
$custom-dark: #000000;
JSON
{
  "hex": "#321c4e",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 78
  },
  "hsl": {
    "h": 266.4,
    "s": 47.17,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28375,
    "c": 0.08921,
    "h": 301.2
  },
  "luminance": 0.02059
}

Semantic roles & 50–950 ramp

primary
#321C4E
secondary
#678442
accent
#D7519C
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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