#321F4D#321F4D

#321F4D is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.9% C 0.082 H 300.4°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#321F4D
RGBrgb(50, 31, 77)
HSLhsl(265, 43%, 21%)
HSVhsv(265, 60%, 30%)
CMYKcmyk(35.1%, 59.7%, 0%, 69.8%)
CIE-LABlab(16.47, 20.54, -25.18)
CIE-LCHlch(16.47, 32.49, 309.21°)
OKLaboklab(28.85% 0.0417 -0.0711)
OKLCHoklch(28.85% 0.082 300.4)
XYZxyz(3.1446, 2.1939, 7.2775)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F4D #3A4D1F
analogous
#1F234D #321F4D #491F4D
triadic
#321F4D #4D321F #1F4D32
tetradic
#321F4D #4D1F23 #3A4D1F #1F4D49
square
#321F4D #4D1F23 #3A4D1F #1F4D49
split-complementary
#321F4D #4D491F #234D1F
monochromatic
#0E0916 #160D21 #321F4D #4E3179 #6B42A4

Accessibility & contrast

On white

14.60
#321F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#321F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F4D
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F4D#FFFFFF#000000##FFFFFF
##321F4D1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D294F
Deuteranopia (green-blind)
#13284C
Tritanopia (blue-blind)
#2D2832
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321f4d;
/* rgb */ color: rgb(50, 31, 77);
/* oklch */ color: oklch(28.9% 0.082 300.4);
Tailwind
colors: {
  custom: {
    50: '#6c5b7f',
    500: '#321f4d',
    950: '#000000',
  },
}
SCSS
$custom: #321f4d;
$custom-light: #6c5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#321f4d",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 77
  },
  "hsl": {
    "h": 264.783,
    "s": 42.593,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28853,
    "c": 0.08242,
    "h": 300.4
  },
  "luminance": 0.02194
}

Semantic roles & 50–950 ramp

primary
#321F4D
secondary
#698246
accent
#D2559F
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #321F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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