#321D64#321D64

#321D64 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.4% C 0.118 H 291.3°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#321D64
RGBrgb(50, 29, 100)
HSLhsl(258, 55%, 25%)
HSVhsv(258, 71%, 39%)
CMYKcmyk(50%, 71%, 0%, 60.8%)
CIE-LABlab(17.81, 28.96, -38.43)
CIE-LCHlch(17.81, 48.12, 307.00°)
OKLaboklab(30.41% 0.043 -0.1101)
OKLCHoklch(30.41% 0.118 291.3)
XYZxyz(4.0544, 2.4768, 12.3186)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D64 #4F641D
analogous
#1D2C64 #321D64 #551D64
triadic
#321D64 #64321D #1D6432
tetradic
#321D64 #641D2C #4F641D #1D6455
square
#321D64 #641D2C #4F641D #1D6455
split-complementary
#321D64 #64551D #2C641D
monochromatic
#0C0718 #1A0F35 #321D64 #4A2B93 #6139C3

Accessibility & contrast

On white

14.04
#321D64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#321D64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D64
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D64#FFFFFF#000000##FFFFFF
##321D641.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321d64;
/* rgb */ color: rgb(50, 29, 100);
/* oklch */ color: oklch(30.4% 0.118 291.3);
Tailwind
colors: {
  custom: {
    50: '#6f5a91',
    500: '#321d64',
    950: '#000000',
  },
}
SCSS
$custom: #321d64;
$custom-light: #6f5a91;
$custom-dark: #000000;
JSON
{
  "hex": "#321d64",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 100
  },
  "hsl": {
    "h": 257.746,
    "s": 55.039,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30407,
    "c": 0.11817,
    "h": 291.3
  },
  "luminance": 0.02477
}

Semantic roles & 50–950 ramp

primary
#321D64
secondary
#809944
accent
#DE49B2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040D
muted
#7B797D

Preview Lab

Preview with #321D64

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

Preview Lab → · Contrast checker → · Palette generator →

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