#321F4E#321F4E

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

Color values

HEX#321F4E
RGBrgb(50, 31, 78)
HSLhsl(264, 43%, 21%)
HSVhsv(264, 60%, 31%)
CMYKcmyk(35.9%, 60.3%, 0%, 69.4%)
CIE-LABlab(16.54, 20.84, -25.75)
CIE-LCHlch(16.54, 33.13, 308.99°)
OKLaboklab(28.93% 0.0417 -0.0728)
OKLCHoklch(28.93% 0.084 299.8)
XYZxyz(3.1802, 2.2081, 7.4649)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F4E #3B4E1F
analogous
#1F244E #321F4E #4A1F4E
triadic
#321F4E #4E321F #1F4E32
tetradic
#321F4E #4E1F24 #3B4E1F #1F4E4A
square
#321F4E #4E1F24 #3B4E1F #1F4E4A
split-complementary
#321F4E #4E4A1F #244E1F
monochromatic
#0E0916 #160E22 #321F4E #4E307A #6A42A6

Accessibility & contrast

On white

14.57
#321F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321F4E
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F4E#FFFFFF#000000##FFFFFF
##321F4E1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2950
Deuteranopia (green-blind)
#12294D
Tritanopia (blue-blind)
#2C2833
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321f4e;
/* rgb */ color: rgb(50, 31, 78);
/* oklch */ color: oklch(28.9% 0.084 299.8);
Tailwind
colors: {
  custom: {
    50: '#6c5b80',
    500: '#321f4e',
    950: '#000000',
  },
}
SCSS
$custom: #321f4e;
$custom-light: #6c5b80;
$custom-dark: #000000;
JSON
{
  "hex": "#321f4e",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 264.255,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28928,
    "c": 0.08389,
    "h": 299.8
  },
  "luminance": 0.02208
}

Semantic roles & 50–950 ramp

primary
#321F4E
secondary
#6A8346
accent
#D355A0
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #321F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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