#321C68#321C68

#321C68 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.125 H 290.3°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#321C68
RGBrgb(50, 28, 104)
HSLhsl(257, 58%, 26%)
HSVhsv(257, 73%, 41%)
CMYKcmyk(51.9%, 73.1%, 0%, 59.2%)
CIE-LABlab(17.95, 30.82, -40.83)
CIE-LCHlch(17.95, 51.15, 307.04°)
OKLaboklab(30.62% 0.0434 -0.1171)
OKLCHoklch(30.62% 0.125 290.3)
XYZxyz(4.2286, 2.5079, 13.3553)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C68 #52681C
analogous
#1C2C68 #321C68 #581C68
triadic
#321C68 #68321C #1C6832
tetradic
#321C68 #681C2C #52681C #1C6858
square
#321C68 #681C2C #52681C #1C6858
split-complementary
#321C68 #68581C #2C681C
monochromatic
#0C0618 #1B0F38 #321C68 #492998 #6036C8

Accessibility & contrast

On white

13.99
#321C68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321C68
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C68#FFFFFF#000000##FFFFFF
##321C681.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#202F3F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321c68;
/* rgb */ color: rgb(50, 28, 104);
/* oklch */ color: oklch(30.6% 0.125 290.3);
Tailwind
colors: {
  custom: {
    50: '#705a94',
    500: '#321c68',
    950: '#000000',
  },
}
SCSS
$custom: #321c68;
$custom-light: #705a94;
$custom-dark: #000000;
JSON
{
  "hex": "#321c68",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 104
  },
  "hsl": {
    "h": 257.368,
    "s": 57.576,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3062,
    "c": 0.12488,
    "h": 290.3
  },
  "luminance": 0.02508
}

Semantic roles & 50–950 ramp

primary
#321C68
secondary
#839D43
accent
#E147B4
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321C68

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

Preview Lab → · Contrast checker → · Palette generator →

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