#321D6E#321D6E

#321D6E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.132 H 288.3°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#321D6E
RGBrgb(50, 29, 110)
HSLhsl(256, 58%, 27%)
HSVhsv(256, 74%, 43%)
CMYKcmyk(54.5%, 73.6%, 0%, 56.9%)
CIE-LABlab(18.72, 32.12, -43.48)
CIE-LCHlch(18.72, 54.06, 306.45°)
OKLaboklab(31.34% 0.0412 -0.1249)
OKLCHoklch(31.34% 0.132 288.3)
XYZxyz(4.5684, 2.6824, 15.0259)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D6E #596E1D
analogous
#1D306E #321D6E #5B1D6E
triadic
#321D6E #6E321D #1D6E32
tetradic
#321D6E #6E1D30 #596E1D #1D6E5B
square
#321D6E #6E1D30 #596E1D #1D6E5B
split-complementary
#321D6E #6E5B1D #306E1D
monochromatic
#0B0618 #1C103E #321D6E #482A9E #603ACB

Accessibility & contrast

On white

13.67
#321D6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#321D6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D6E
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D6E#FFFFFF#000000##FFFFFF
##321D6E1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321d6e;
/* rgb */ color: rgb(50, 29, 110);
/* oklch */ color: oklch(31.3% 0.132 288.3);
Tailwind
colors: {
  custom: {
    50: '#715b98',
    500: '#321d6e',
    950: '#000000',
  },
}
SCSS
$custom: #321d6e;
$custom-light: #715b98;
$custom-dark: #000000;
JSON
{
  "hex": "#321d6e",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 110
  },
  "hsl": {
    "h": 255.556,
    "s": 58.273,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31342,
    "c": 0.13152,
    "h": 288.3
  },
  "luminance": 0.02683
}

Semantic roles & 50–950 ramp

primary
#321D6E
secondary
#8AA244
accent
#E146B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321D6E

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

Preview Lab → · Contrast checker → · Palette generator →

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