#321E6A#321E6A

#321E6A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.125 H 289.1°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#321E6A
RGBrgb(50, 30, 106)
HSLhsl(256, 56%, 27%)
HSVhsv(256, 72%, 42%)
CMYKcmyk(52.8%, 71.7%, 0%, 58.4%)
CIE-LABlab(18.57, 30.25, -41.13)
CIE-LCHlch(18.57, 51.06, 306.33°)
OKLaboklab(31.12% 0.0409 -0.118)
OKLCHoklch(31.12% 0.125 289.1)
XYZxyz(4.3804, 2.6471, 13.9130)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E6A #566A1E
analogous
#1E306A #321E6A #581E6A
triadic
#321E6A #6A321E #1E6A32
tetradic
#321E6A #6A1E30 #566A1E #1E6A58
square
#321E6A #6A1E30 #566A1E #1E6A58
split-complementary
#321E6A #6A581E #306A1E
monochromatic
#0B0718 #1C113A #321E6A #482C9A #603BC7

Accessibility & contrast

On white

13.73
#321E6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#321E6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E6A
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E6A#FFFFFF#000000##FFFFFF
##321E6A1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002B68
Tritanopia (blue-blind)
#1E3141
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321e6a;
/* rgb */ color: rgb(50, 30, 106);
/* oklch */ color: oklch(31.1% 0.125 289.1);
Tailwind
colors: {
  custom: {
    50: '#705b95',
    500: '#321e6a',
    950: '#000000',
  },
}
SCSS
$custom: #321e6a;
$custom-light: #705b95;
$custom-dark: #000000;
JSON
{
  "hex": "#321e6a",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 106
  },
  "hsl": {
    "h": 255.789,
    "s": 55.882,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31118,
    "c": 0.12489,
    "h": 289.1
  },
  "luminance": 0.02647
}

Semantic roles & 50–950 ramp

primary
#321E6A
secondary
#879E45
accent
#DF49B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321E6A

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

Preview Lab → · Contrast checker → · Palette generator →

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