#321B66#321B66

#321B66 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.124 H 291.3°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#321B66
RGBrgb(50, 27, 102)
HSLhsl(258, 58%, 25%)
HSVhsv(258, 74%, 40%)
CMYKcmyk(51%, 73.5%, 0%, 60%)
CIE-LABlab(17.56, 30.78, -40.16)
CIE-LCHlch(17.56, 50.60, 307.46°)
OKLaboklab(30.28% 0.0449 -0.1151)
OKLCHoklch(30.28% 0.124 291.3)
XYZxyz(4.1049, 2.4211, 12.8188)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B66 #4F661B
analogous
#1B2966 #321B66 #571B66
triadic
#321B66 #66321B #1B6632
tetradic
#321B66 #661B29 #4F661B #1B6657
square
#321B66 #661B29 #4F661B #1B6657
split-complementary
#321B66 #66571B #29661B
monochromatic
#0C0618 #1A0E36 #321B66 #4A2896 #6135C7

Accessibility & contrast

On white

14.15
#321B66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321B66
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B66#FFFFFF#000000##FFFFFF
##321B661.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002965
Tritanopia (blue-blind)
#212E3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321b66;
/* rgb */ color: rgb(50, 27, 102);
/* oklch */ color: oklch(30.3% 0.124 291.3);
Tailwind
colors: {
  custom: {
    50: '#705992',
    500: '#321b66',
    950: '#000000',
  },
}
SCSS
$custom: #321b66;
$custom-light: #705992;
$custom-dark: #000000;
JSON
{
  "hex": "#321b66",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 102
  },
  "hsl": {
    "h": 258.4,
    "s": 58.14,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3028,
    "c": 0.12357,
    "h": 291.3
  },
  "luminance": 0.02421
}

Semantic roles & 50–950 ramp

primary
#321B66
secondary
#809B41
accent
#E146B2
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321B66

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

Preview Lab → · Contrast checker → · Palette generator →

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