#321C6E#321C6E

#321C6E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.133 H 288.5°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#321C6E
RGBrgb(50, 28, 110)
HSLhsl(256, 59%, 27%)
HSVhsv(256, 75%, 43%)
CMYKcmyk(54.5%, 74.5%, 0%, 56.9%)
CIE-LABlab(18.52, 32.70, -43.83)
CIE-LCHlch(18.52, 54.68, 306.73°)
OKLaboklab(31.19% 0.0422 -0.1259)
OKLCHoklch(31.19% 0.133 288.5)
XYZxyz(4.5443, 2.6342, 15.0178)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C6E #586E1C
analogous
#1C2F6E #321C6E #5B1C6E
triadic
#321C6E #6E321C #1C6E32
tetradic
#321C6E #6E1C2F #586E1C #1C6E5B
square
#321C6E #6E1C2F #586E1C #1C6E5B
split-complementary
#321C6E #6E5B1C #2F6E1C
monochromatic
#0B0618 #1C103D #321C6E #48289F #6038CC

Accessibility & contrast

On white

13.75
#321C6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#321C6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C6E
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C6E#FFFFFF#000000##FFFFFF
##321C6E1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#1B3243
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321c6e;
/* rgb */ color: rgb(50, 28, 110);
/* oklch */ color: oklch(31.2% 0.133 288.5);
Tailwind
colors: {
  custom: {
    50: '#715a98',
    500: '#321c6e',
    950: '#000000',
  },
}
SCSS
$custom: #321c6e;
$custom-light: #715a98;
$custom-dark: #000000;
JSON
{
  "hex": "#321c6e",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 110
  },
  "hsl": {
    "h": 256.098,
    "s": 59.42,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31193,
    "c": 0.13277,
    "h": 288.5
  },
  "luminance": 0.02634
}

Semantic roles & 50–950 ramp

primary
#321C6E
secondary
#89A343
accent
#E345B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321C6E

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

Preview Lab → · Contrast checker → · Palette generator →

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