#321F6D#321F6D

#321F6D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.6% C 0.128 H 288.0°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#321F6D
RGBrgb(50, 31, 109)
HSLhsl(255, 56%, 27%)
HSVhsv(255, 72%, 43%)
CMYKcmyk(54.1%, 71.6%, 0%, 57.3%)
CIE-LABlab(19.06, 30.61, -42.28)
CIE-LCHlch(19.06, 52.19, 305.90°)
OKLaboklab(31.56% 0.0394 -0.1214)
OKLCHoklch(31.56% 0.128 288)
XYZxyz(4.5649, 2.7620, 14.7576)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F6D #5A6D1F
analogous
#1F336D #321F6D #591F6D
triadic
#321F6D #6D321F #1F6D32
tetradic
#321F6D #6D1F33 #5A6D1F #1F6D59
square
#321F6D #6D1F33 #5A6D1F #1F6D59
split-complementary
#321F6D #6D591F #336D1F
monochromatic
#0B0718 #1C113D #321F6D #482D9D #603EC8

Accessibility & contrast

On white

13.53
#321F6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#321F6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F6D
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F6D#FFFFFF#000000##FFFFFF
##321F6D1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#1C3343
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321f6d;
/* rgb */ color: rgb(50, 31, 109);
/* oklch */ color: oklch(31.6% 0.128 288.0);
Tailwind
colors: {
  custom: {
    50: '#705c98',
    500: '#321f6d',
    950: '#000000',
  },
}
SCSS
$custom: #321f6d;
$custom-light: #705c98;
$custom-dark: #000000;
JSON
{
  "hex": "#321f6d",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 109
  },
  "hsl": {
    "h": 254.615,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31556,
    "c": 0.12758,
    "h": 288
  },
  "luminance": 0.02762
}

Semantic roles & 50–950 ramp

primary
#321F6D
secondary
#8BA147
accent
#DF49BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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