#321D4E#321D4E

#321D4E is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.087 H 300.8°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#321D4E
RGBrgb(50, 29, 78)
HSLhsl(266, 46%, 21%)
HSVhsv(266, 63%, 31%)
CMYKcmyk(35.9%, 62.8%, 0%, 69.4%)
CIE-LABlab(16.04, 22.16, -26.56)
CIE-LCHlch(16.04, 34.59, 309.85°)
OKLaboklab(28.56% 0.0447 -0.0751)
OKLCHoklch(28.56% 0.087 300.8)
XYZxyz(3.1296, 2.1069, 7.4480)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D4E #394E1D
analogous
#1D204E #321D4E #4A1D4E
triadic
#321D4E #4E321D #1D4E32
tetradic
#321D4E #4E1D20 #394E1D #1D4E4A
square
#321D4E #4E1D20 #394E1D #1D4E4A
split-complementary
#321D4E #4E4A1D #204E1D
monochromatic
#0E0816 #150C21 #321D4E #4F2E7B #6B3EA7

Accessibility & contrast

On white

14.77
#321D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321D4E
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D4E#FFFFFF#000000##FFFFFF
##321D4E1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072850
Deuteranopia (green-blind)
#0F284D
Tritanopia (blue-blind)
#2C2732
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321d4e;
/* rgb */ color: rgb(50, 29, 78);
/* oklch */ color: oklch(28.6% 0.087 300.8);
Tailwind
colors: {
  custom: {
    50: '#6c5a80',
    500: '#321d4e',
    950: '#000000',
  },
}
SCSS
$custom: #321d4e;
$custom-light: #6c5a80;
$custom-dark: #000000;
JSON
{
  "hex": "#321d4e",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 265.714,
    "s": 45.794,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28556,
    "c": 0.08745,
    "h": 300.8
  },
  "luminance": 0.02107
}

Semantic roles & 50–950 ramp

primary
#321D4E
secondary
#688344
accent
#D5529D
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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