#321E68#321E68

#321E68 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.9% C 0.122 H 289.7°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#321E68
RGBrgb(50, 30, 104)
HSLhsl(256, 55%, 26%)
HSVhsv(256, 71%, 41%)
CMYKcmyk(51.9%, 71.2%, 0%, 59.2%)
CIE-LABlab(18.39, 29.61, -40.12)
CIE-LCHlch(18.39, 49.86, 306.43°)
OKLaboklab(30.93% 0.0413 -0.115)
OKLCHoklch(30.93% 0.122 289.7)
XYZxyz(4.2776, 2.6060, 13.3716)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E68 #54681E
analogous
#1E2F68 #321E68 #571E68
triadic
#321E68 #68321E #1E6832
tetradic
#321E68 #681E2F #54681E #1E6857
square
#321E68 #681E2F #54681E #1E6857
split-complementary
#321E68 #68571E #2F681E
monochromatic
#0B0718 #1B1039 #321E68 #492C98 #603AC6

Accessibility & contrast

On white

13.80
#321E68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#321E68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E68
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E68#FFFFFF#000000##FFFFFF
##321E681.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#002B67
Tritanopia (blue-blind)
#203040
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321e68;
/* rgb */ color: rgb(50, 30, 104);
/* oklch */ color: oklch(30.9% 0.122 289.7);
Tailwind
colors: {
  custom: {
    50: '#705b94',
    500: '#321e68',
    950: '#000000',
  },
}
SCSS
$custom: #321e68;
$custom-light: #705b94;
$custom-dark: #000000;
JSON
{
  "hex": "#321e68",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 104
  },
  "hsl": {
    "h": 256.216,
    "s": 55.224,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30933,
    "c": 0.12219,
    "h": 289.7
  },
  "luminance": 0.02606
}

Semantic roles & 50–950 ramp

primary
#321E68
secondary
#859D45
accent
#DF49B6
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321E68

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

Preview Lab → · Contrast checker → · Palette generator →

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