#321E4B#321E4B

#321E4B is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.5% C 0.081 H 302.0°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#321E4B
RGBrgb(50, 30, 75)
HSLhsl(267, 43%, 21%)
HSVhsv(267, 60%, 29%)
CMYKcmyk(33.3%, 60%, 0%, 70.6%)
CIE-LABlab(16.08, 20.61, -24.44)
CIE-LCHlch(16.08, 31.97, 310.14°)
OKLaboklab(28.52% 0.0431 -0.0689)
OKLCHoklch(28.52% 0.081 302)
XYZxyz(3.0494, 2.1147, 6.9028)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E4B #374B1E
analogous
#1E204B #321E4B #481E4B
triadic
#321E4B #4B321E #1E4B32
tetradic
#321E4B #4B1E20 #374B1E #1E4B48
square
#321E4B #4B1E20 #374B1E #1E4B48
split-complementary
#321E4B #4B481E #204B1E
monochromatic
#0F0916 #150D1F #321E4B #4F2F77 #6C41A2

Accessibility & contrast

On white

14.76
#321E4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321E4B
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E4B#FFFFFF#000000##FFFFFF
##321E4B1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D284D
Deuteranopia (green-blind)
#14284A
Tritanopia (blue-blind)
#2D2731
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321e4b;
/* rgb */ color: rgb(50, 30, 75);
/* oklch */ color: oklch(28.5% 0.081 302.0);
Tailwind
colors: {
  custom: {
    50: '#6c5a7d',
    500: '#321e4b',
    950: '#000000',
  },
}
SCSS
$custom: #321e4b;
$custom-light: #6c5a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#321e4b",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 75
  },
  "hsl": {
    "h": 266.667,
    "s": 42.857,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28516,
    "c": 0.08132,
    "h": 302
  },
  "luminance": 0.02115
}

Semantic roles & 50–950 ramp

primary
#321E4B
secondary
#668045
accent
#D3559B
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #321E4B

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

Preview Lab → · Contrast checker → · Palette generator →

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