#321B65#321B65

#321B65 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.122 H 291.6°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#321B65
RGBrgb(50, 27, 101)
HSLhsl(259, 58%, 25%)
HSVhsv(259, 73%, 40%)
CMYKcmyk(50.5%, 73.3%, 0%, 60.4%)
CIE-LABlab(17.47, 30.47, -39.66)
CIE-LCHlch(17.47, 50.01, 307.54°)
OKLaboklab(30.19% 0.045 -0.1136)
OKLCHoklch(30.19% 0.122 291.6)
XYZxyz(4.0556, 2.4014, 12.5592)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B65 #4E651B
analogous
#1B2965 #321B65 #571B65
triadic
#321B65 #65321B #1B6532
tetradic
#321B65 #651B29 #4E651B #1B6557
square
#321B65 #651B29 #4E651B #1B6557
split-complementary
#321B65 #65571B #29651B
monochromatic
#0C0618 #1A0E35 #321B65 #4A2895 #6235C6

Accessibility & contrast

On white

14.19
#321B65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321B65
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B65#FFFFFF#000000##FFFFFF
##321B651.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C67
Deuteranopia (green-blind)
#002964
Tritanopia (blue-blind)
#222E3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321b65;
/* rgb */ color: rgb(50, 27, 101);
/* oklch */ color: oklch(30.2% 0.122 291.6);
Tailwind
colors: {
  custom: {
    50: '#6f5992',
    500: '#321b65',
    950: '#000000',
  },
}
SCSS
$custom: #321b65;
$custom-light: #6f5992;
$custom-dark: #000000;
JSON
{
  "hex": "#321b65",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 101
  },
  "hsl": {
    "h": 258.649,
    "s": 57.813,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30186,
    "c": 0.12225,
    "h": 291.6
  },
  "luminance": 0.02402
}

Semantic roles & 50–950 ramp

primary
#321B65
secondary
#7F9A41
accent
#E147B1
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321B65

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

Preview Lab → · Contrast checker → · Palette generator →

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