#321F4F#321F4F

#321F4F is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.0% C 0.085 H 299.3°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#321F4F
RGBrgb(50, 31, 79)
HSLhsl(264, 44%, 22%)
HSVhsv(264, 61%, 31%)
CMYKcmyk(36.7%, 60.8%, 0%, 69%)
CIE-LABlab(16.61, 21.14, -26.31)
CIE-LCHlch(16.61, 33.76, 308.78°)
OKLaboklab(29% 0.0418 -0.0744)
OKLCHoklch(29% 0.085 299.3)
XYZxyz(3.2163, 2.2226, 7.6552)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F4F #3C4F1F
analogous
#1F244F #321F4F #4A1F4F
triadic
#321F4F #4F321F #1F4F32
tetradic
#321F4F #4F1F24 #3C4F1F #1F4F4A
square
#321F4F #4F1F24 #3C4F1F #1F4F4A
split-complementary
#321F4F #4F4A1F #244F1F
monochromatic
#0E0916 #160E23 #321F4F #4E307B #6A41A7

Accessibility & contrast

On white

14.54
#321F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321F4F
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F4F#FFFFFF#000000##FFFFFF
##321F4F1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2951
Deuteranopia (green-blind)
#11294E
Tritanopia (blue-blind)
#2C2933
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321f4f;
/* rgb */ color: rgb(50, 31, 79);
/* oklch */ color: oklch(29.0% 0.085 299.3);
Tailwind
colors: {
  custom: {
    50: '#6c5b81',
    500: '#321f4f',
    950: '#000000',
  },
}
SCSS
$custom: #321f4f;
$custom-light: #6c5b81;
$custom-dark: #000000;
JSON
{
  "hex": "#321f4f",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 79
  },
  "hsl": {
    "h": 263.75,
    "s": 43.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29003,
    "c": 0.08536,
    "h": 299.3
  },
  "luminance": 0.02223
}

Semantic roles & 50–950 ramp

primary
#321F4F
secondary
#6B8446
accent
#D354A1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #321F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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