#321C4C#321C4C

#321C4C is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.086 H 302.3°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#321C4C
RGBrgb(50, 28, 76)
HSLhsl(268, 46%, 20%)
HSVhsv(268, 63%, 30%)
CMYKcmyk(34.2%, 63.2%, 0%, 70.2%)
CIE-LABlab(15.65, 22.22, -25.82)
CIE-LCHlch(15.65, 34.06, 310.72°)
OKLaboklab(28.22% 0.0462 -0.073)
OKLCHoklch(28.22% 0.086 302.3)
XYZxyz(3.0349, 2.0304, 7.0681)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C4C #364C1C
analogous
#1C1E4C #321C4C #4A1C4C
triadic
#321C4C #4C321C #1C4C32
tetradic
#321C4C #4C1C1E #364C1C #1C4C4A
square
#321C4C #4C1C1E #364C1C #1C4C4A
split-complementary
#321C4C #4C4A1C #1E4C1C
monochromatic
#0F0816 #150C1F #321C4C #4F2C79 #6D3DA5

Accessibility & contrast

On white

14.94
#321C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321C4C
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C4C#FFFFFF#000000##FFFFFF
##321C4C1.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07274E
Deuteranopia (green-blind)
#10274B
Tritanopia (blue-blind)
#2D2631
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321c4c;
/* rgb */ color: rgb(50, 28, 76);
/* oklch */ color: oklch(28.2% 0.086 302.3);
Tailwind
colors: {
  custom: {
    50: '#6c597e',
    500: '#321c4c',
    950: '#000000',
  },
}
SCSS
$custom: #321c4c;
$custom-light: #6c597e;
$custom-dark: #000000;
JSON
{
  "hex": "#321c4c",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 76
  },
  "hsl": {
    "h": 267.5,
    "s": 46.154,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28221,
    "c": 0.08637,
    "h": 302.3
  },
  "luminance": 0.0203
}

Semantic roles & 50–950 ramp

primary
#321C4C
secondary
#658242
accent
#D65299
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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