#321D68#321D68

#321D68 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.8% C 0.124 H 290.0°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#321D68
RGBrgb(50, 29, 104)
HSLhsl(257, 56%, 26%)
HSVhsv(257, 72%, 41%)
CMYKcmyk(51.9%, 72.1%, 0%, 59.2%)
CIE-LABlab(18.17, 30.22, -40.48)
CIE-LCHlch(18.17, 50.51, 306.74°)
OKLaboklab(30.78% 0.0423 -0.1161)
OKLCHoklch(30.78% 0.124 290)
XYZxyz(4.2527, 2.5561, 13.3633)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D68 #53681D
analogous
#1D2D68 #321D68 #571D68
triadic
#321D68 #68321D #1D6832
tetradic
#321D68 #681D2D #53681D #1D6857
square
#321D68 #681D2D #53681D #1D6857
split-complementary
#321D68 #68571D #2D681D
monochromatic
#0C0718 #1B1038 #321D68 #492A98 #6038C7

Accessibility & contrast

On white

13.90
#321D68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321D68
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D68#FFFFFF#000000##FFFFFF
##321D681.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321d68;
/* rgb */ color: rgb(50, 29, 104);
/* oklch */ color: oklch(30.8% 0.124 290.0);
Tailwind
colors: {
  custom: {
    50: '#705b94',
    500: '#321d68',
    950: '#000000',
  },
}
SCSS
$custom: #321d68;
$custom-light: #705b94;
$custom-dark: #000000;
JSON
{
  "hex": "#321d68",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 104
  },
  "hsl": {
    "h": 256.8,
    "s": 56.391,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30775,
    "c": 0.12355,
    "h": 290
  },
  "luminance": 0.02556
}

Semantic roles & 50–950 ramp

primary
#321D68
secondary
#849D44
accent
#E048B5
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321D68

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

Preview Lab → · Contrast checker → · Palette generator →

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