#321F6A#321F6A

#321F6A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.124 H 288.8°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#321F6A
RGBrgb(50, 31, 106)
HSLhsl(255, 55%, 27%)
HSVhsv(255, 71%, 42%)
CMYKcmyk(52.8%, 70.8%, 0%, 58.4%)
CIE-LABlab(18.79, 29.64, -40.77)
CIE-LCHlch(18.79, 50.41, 306.02°)
OKLaboklab(31.28% 0.0399 -0.1169)
OKLCHoklch(31.28% 0.124 288.8)
XYZxyz(4.4061, 2.6985, 13.9216)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F6A #576A1F
analogous
#1F326A #321F6A #581F6A
triadic
#321F6A #6A321F #1F6A32
tetradic
#321F6A #6A1F32 #576A1F #1F6A58
square
#321F6A #6A1F32 #576A1F #1F6A58
split-complementary
#321F6A #6A581F #326A1F
monochromatic
#0B0718 #1C113B #321F6A #482D99 #603DC6

Accessibility & contrast

On white

13.64
#321F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#321F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F6A
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F6A#FFFFFF#000000##FFFFFF
##321F6A1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#1E3241
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321f6a;
/* rgb */ color: rgb(50, 31, 106);
/* oklch */ color: oklch(31.3% 0.124 288.8);
Tailwind
colors: {
  custom: {
    50: '#705c95',
    500: '#321f6a',
    950: '#000000',
  },
}
SCSS
$custom: #321f6a;
$custom-light: #705c95;
$custom-dark: #000000;
JSON
{
  "hex": "#321f6a",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 106
  },
  "hsl": {
    "h": 255.2,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31278,
    "c": 0.12354,
    "h": 288.8
  },
  "luminance": 0.02699
}

Semantic roles & 50–950 ramp

primary
#321F6A
secondary
#889E47
accent
#DE4AB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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