#321C4D#321C4D

#321C4D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.088 H 301.8°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#321C4D
RGBrgb(50, 28, 77)
HSLhsl(267, 47%, 21%)
HSVhsv(267, 64%, 30%)
CMYKcmyk(35.1%, 63.6%, 0%, 69.8%)
CIE-LABlab(15.72, 22.51, -26.39)
CIE-LCHlch(15.72, 34.69, 310.47°)
OKLaboklab(28.3% 0.0462 -0.0746)
OKLCHoklch(28.3% 0.088 301.8)
XYZxyz(3.0699, 2.0444, 7.2526)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C4D #374D1C
analogous
#1C1E4D #321C4D #4A1C4D
triadic
#321C4D #4D321C #1C4D32
tetradic
#321C4D #4D1C1E #374D1C #1C4D4A
square
#321C4D #4D1C1E #374D1C #1C4D4A
split-complementary
#321C4D #4D4A1C #1E4D1C
monochromatic
#0F0816 #150C20 #321C4D #4F2C7A #6C3DA7

Accessibility & contrast

On white

14.91
#321C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321C4D
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C4D#FFFFFF#000000##FFFFFF
##321C4D1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06274F
Deuteranopia (green-blind)
#0F274C
Tritanopia (blue-blind)
#2D2631
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321c4d;
/* rgb */ color: rgb(50, 28, 77);
/* oklch */ color: oklch(28.3% 0.088 301.8);
Tailwind
colors: {
  custom: {
    50: '#6c597f',
    500: '#321c4d',
    950: '#000000',
  },
}
SCSS
$custom: #321c4d;
$custom-light: #6c597f;
$custom-dark: #000000;
JSON
{
  "hex": "#321c4d",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 77
  },
  "hsl": {
    "h": 266.939,
    "s": 46.667,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28298,
    "c": 0.0878,
    "h": 301.8
  },
  "luminance": 0.02044
}

Semantic roles & 50–950 ramp

primary
#321C4D
secondary
#668342
accent
#D6519B
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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