#321D62#321D62

#321D62 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.2% C 0.115 H 292.0°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#321D62
RGBrgb(50, 29, 98)
HSLhsl(258, 54%, 25%)
HSVhsv(258, 70%, 38%)
CMYKcmyk(49%, 70.4%, 0%, 61.6%)
CIE-LABlab(17.64, 28.32, -37.40)
CIE-LCHlch(17.64, 46.91, 307.14°)
OKLaboklab(30.23% 0.0433 -0.107)
OKLCHoklch(30.23% 0.115 292)
XYZxyz(3.9587, 2.4385, 11.8150)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D62 #4D621D
analogous
#1D2A62 #321D62 #551D62
triadic
#321D62 #62321D #1D6232
tetradic
#321D62 #621D2A #4D621D #1D6255
square
#321D62 #621D2A #4D621D #1D6255
split-complementary
#321D62 #62551D #2A621D
monochromatic
#0C0718 #1A0F33 #321D62 #4A2B91 #6239C0

Accessibility & contrast

On white

14.11
#321D62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#321D62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D62
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D62#FFFFFF#000000##FFFFFF
##321D621.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002A61
Tritanopia (blue-blind)
#242E3C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321d62;
/* rgb */ color: rgb(50, 29, 98);
/* oklch */ color: oklch(30.2% 0.115 292.0);
Tailwind
colors: {
  custom: {
    50: '#6f5a8f',
    500: '#321d62',
    950: '#000000',
  },
}
SCSS
$custom: #321d62;
$custom-light: #6f5a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#321d62",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 98
  },
  "hsl": {
    "h": 258.261,
    "s": 54.331,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30226,
    "c": 0.11545,
    "h": 292
  },
  "luminance": 0.02439
}

Semantic roles & 50–950 ramp

primary
#321D62
secondary
#7E9744
accent
#DE4AB1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #321D62

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

Preview Lab → · Contrast checker → · Palette generator →

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