#321B8C#321B8C

#321B8C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.171 H 281.7°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#321B8C
RGBrgb(50, 27, 140)
HSLhsl(252, 68%, 33%)
HSVhsv(252, 81%, 55%)
CMYKcmyk(64.3%, 80.7%, 0%, 45.1%)
CIE-LABlab(21.41, 42.57, -58.15)
CIE-LCHlch(21.41, 72.07, 306.21°)
OKLaboklab(34.16% 0.0348 -0.1678)
OKLCHoklch(34.16% 0.171 281.7)
XYZxyz(6.4395, 3.3549, 25.1141)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B8C #758C1B
analogous
#1B3D8C #321B8C #6A1B8C
triadic
#321B8C #8C321B #1B8C32
tetradic
#321B8C #8C1B3D #758C1B #1B8C6A
square
#321B8C #8C1B3D #758C1B #1B8C6A
split-complementary
#321B8C #8C6A1B #3D8C1B
monochromatic
#0D0725 #201159 #321B8C #4425BF #6446DB

Accessibility & contrast

On white

12.57
#321B8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#321B8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B8C
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B8C#FFFFFF#000000##FFFFFF
##321B8C1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #321b8c;
/* rgb */ color: rgb(50, 27, 140);
/* oklch */ color: oklch(34.2% 0.171 281.7);
Tailwind
colors: {
  custom: {
    50: '#775baf',
    500: '#321b8c',
    950: '#000000',
  },
}
SCSS
$custom: #321b8c;
$custom-light: #775baf;
$custom-dark: #000000;
JSON
{
  "hex": "#321b8c",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 140
  },
  "hsl": {
    "h": 252.212,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34162,
    "c": 0.17133,
    "h": 281.7
  },
  "luminance": 0.03355
}

Semantic roles & 50–950 ramp

primary
#321B8C
secondary
#A5BD46
accent
#EB3DC7
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321B8C

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

Preview Lab → · Contrast checker → · Palette generator →

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