#321F55#321F55

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

Color values

HEX#321F55
RGBrgb(50, 31, 85)
HSLhsl(261, 47%, 23%)
HSVhsv(261, 64%, 33%)
CMYKcmyk(41.2%, 63.5%, 0%, 66.7%)
CIE-LABlab(17.06, 22.99, -29.67)
CIE-LCHlch(17.06, 37.53, 307.77°)
OKLaboklab(29.47% 0.0418 -0.0843)
OKLCHoklch(29.47% 0.094 296.4)
XYZxyz(3.4447, 2.3139, 8.8577)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F55 #42551F
analogous
#1F2755 #321F55 #4D1F55
triadic
#321F55 #55321F #1F5532
tetradic
#321F55 #551F27 #42551F #1F554D
square
#321F55 #551F27 #42551F #1F554D
split-complementary
#321F55 #554D1F #27551F
monochromatic
#0D0816 #180F28 #321F55 #4C2F82 #6740AF

Accessibility & contrast

On white

14.36
#321F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#321F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F55
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F55#FFFFFF#000000##FFFFFF
##321F551.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022A57
Deuteranopia (green-blind)
#092954
Tritanopia (blue-blind)
#2A2B36
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321f55;
/* rgb */ color: rgb(50, 31, 85);
/* oklch */ color: oklch(29.5% 0.094 296.4);
Tailwind
colors: {
  custom: {
    50: '#6d5b85',
    500: '#321f55',
    950: '#000000',
  },
}
SCSS
$custom: #321f55;
$custom-light: #6d5b85;
$custom-dark: #000000;
JSON
{
  "hex": "#321f55",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 85
  },
  "hsl": {
    "h": 261.111,
    "s": 46.552,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29468,
    "c": 0.09409,
    "h": 296.4
  },
  "luminance": 0.02314
}

Semantic roles & 50–950 ramp

primary
#321F55
secondary
#728A46
accent
#D652A8
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #321F55

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

Preview Lab → · Contrast checker → · Palette generator →

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