#321F56#321F56

#321F56 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.5% C 0.096 H 295.9°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#321F56
RGBrgb(50, 31, 86)
HSLhsl(261, 47%, 23%)
HSVhsv(261, 64%, 34%)
CMYKcmyk(41.9%, 64%, 0%, 66.3%)
CIE-LABlab(17.13, 23.30, -30.22)
CIE-LCHlch(17.13, 38.16, 307.63°)
OKLaboklab(29.55% 0.0418 -0.0859)
OKLCHoklch(29.55% 0.096 295.9)
XYZxyz(3.4847, 2.3299, 9.0684)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F56 #43561F
analogous
#1F2756 #321F56 #4D1F56
triadic
#321F56 #56321F #1F5632
tetradic
#321F56 #561F27 #43561F #1F564D
square
#321F56 #561F27 #43561F #1F564D
split-complementary
#321F56 #564D1F #27561F
monochromatic
#0D0816 #180F29 #321F56 #4C2F83 #663FB0

Accessibility & contrast

On white

14.32
#321F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#321F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F56
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F56#FFFFFF#000000##FFFFFF
##321F561.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012B58
Deuteranopia (green-blind)
#082955
Tritanopia (blue-blind)
#292B37
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321f56;
/* rgb */ color: rgb(50, 31, 86);
/* oklch */ color: oklch(29.5% 0.096 295.9);
Tailwind
colors: {
  custom: {
    50: '#6d5b86',
    500: '#321f56',
    950: '#000000',
  },
}
SCSS
$custom: #321f56;
$custom-light: #6d5b86;
$custom-dark: #000000;
JSON
{
  "hex": "#321f56",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 260.727,
    "s": 47.009,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29548,
    "c": 0.09554,
    "h": 295.9
  },
  "luminance": 0.0233
}

Semantic roles & 50–950 ramp

primary
#321F56
secondary
#738B46
accent
#D751A9
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #321F56

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

Preview Lab → · Contrast checker → · Palette generator →

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