#321C62#321C62

#321C62 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.117 H 292.4°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#321C62
RGBrgb(50, 28, 98)
HSLhsl(259, 56%, 25%)
HSVhsv(259, 71%, 38%)
CMYKcmyk(49%, 71.4%, 0%, 61.6%)
CIE-LABlab(17.42, 28.93, -37.76)
CIE-LCHlch(17.42, 47.57, 307.46°)
OKLaboklab(30.07% 0.0445 -0.1081)
OKLCHoklch(30.07% 0.117 292.4)
XYZxyz(3.9346, 2.3903, 11.8070)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C62 #4C621C
analogous
#1C2962 #321C62 #551C62
triadic
#321C62 #62321C #1C6232
tetradic
#321C62 #621C29 #4C621C #1C6255
square
#321C62 #621C29 #4C621C #1C6255
split-complementary
#321C62 #62551C #29621C
monochromatic
#0C0718 #1A0E32 #321C62 #4A2A92 #6337C1

Accessibility & contrast

On white

14.21
#321C62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#321C62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C62
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C62#FFFFFF#000000##FFFFFF
##321C621.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321c62;
/* rgb */ color: rgb(50, 28, 98);
/* oklch */ color: oklch(30.1% 0.117 292.4);
Tailwind
colors: {
  custom: {
    50: '#6f5a8f',
    500: '#321c62',
    950: '#000000',
  },
}
SCSS
$custom: #321c62;
$custom-light: #6f5a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#321c62",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 98
  },
  "hsl": {
    "h": 258.857,
    "s": 55.556,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30066,
    "c": 0.11687,
    "h": 292.4
  },
  "luminance": 0.0239
}

Semantic roles & 50–950 ramp

primary
#321C62
secondary
#7D9743
accent
#DF49B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #321C62

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

Preview Lab → · Contrast checker → · Palette generator →

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