#321E64#321E64

#321E64 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.6% C 0.117 H 291.0°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#321E64
RGBrgb(50, 30, 100)
HSLhsl(257, 54%, 25%)
HSVhsv(257, 70%, 39%)
CMYKcmyk(50%, 70%, 0%, 60.8%)
CIE-LABlab(18.04, 28.34, -38.07)
CIE-LCHlch(18.04, 47.46, 306.67°)
OKLaboklab(30.57% 0.0419 -0.109)
OKLCHoklch(30.57% 0.117 291)
XYZxyz(4.0793, 2.5266, 12.3269)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E64 #50641E
analogous
#1E2D64 #321E64 #551E64
triadic
#321E64 #64321E #1E6432
tetradic
#321E64 #641E2D #50641E #1E6455
square
#321E64 #641E2D #50641E #1E6455
split-complementary
#321E64 #64551E #2D641E
monochromatic
#0C0718 #1A1035 #321E64 #4A2C93 #613AC2

Accessibility & contrast

On white

13.95
#321E64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#321E64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E64
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E64#FFFFFF#000000##FFFFFF
##321E641.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D66
Deuteranopia (green-blind)
#002B63
Tritanopia (blue-blind)
#222F3E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321e64;
/* rgb */ color: rgb(50, 30, 100);
/* oklch */ color: oklch(30.6% 0.117 291.0);
Tailwind
colors: {
  custom: {
    50: '#6f5b91',
    500: '#321e64',
    950: '#000000',
  },
}
SCSS
$custom: #321e64;
$custom-light: #6f5b91;
$custom-dark: #000000;
JSON
{
  "hex": "#321e64",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 100
  },
  "hsl": {
    "h": 257.143,
    "s": 53.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30569,
    "c": 0.11675,
    "h": 291
  },
  "luminance": 0.02527
}

Semantic roles & 50–950 ramp

primary
#321E64
secondary
#819945
accent
#DD4BB3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040D
muted
#7B797D

Preview Lab

Preview with #321E64

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

Preview Lab → · Contrast checker → · Palette generator →

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