#321BA0#321BA0

#321BA0 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.195 H 278.4°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#321BA0
RGBrgb(50, 27, 160)
HSLhsl(250, 71%, 37%)
HSVhsv(250, 83%, 63%)
CMYKcmyk(68.8%, 83.1%, 0%, 37.3%)
CIE-LABlab(23.67, 48.59, -66.76)
CIE-LCHlch(23.67, 82.57, 306.05°)
OKLaboklab(36.39% 0.0285 -0.1928)
OKLCHoklch(36.39% 0.195 278.4)
XYZxyz(8.0504, 3.9993, 33.5986)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321BA0 #89A01B
analogous
#1B47A0 #321BA0 #751BA0
triadic
#321BA0 #A0321B #1BA032
tetradic
#321BA0 #A01B47 #89A01B #1BA075
square
#321BA0 #A01B47 #89A01B #1BA075
split-complementary
#321BA0 #A0751B #47A01B
monochromatic
#110937 #22126C #321BA0 #4224D4 #6C53E2

Accessibility & contrast

On white

11.67
#321BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#321BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321BA0
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321BA0#FFFFFF#000000##FFFFFF
##321BA01.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA4
Deuteranopia (green-blind)
#00339E
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #321ba0;
/* rgb */ color: rgb(50, 27, 160);
/* oklch */ color: oklch(36.4% 0.195 278.4);
Tailwind
colors: {
  custom: {
    50: '#7b5dbd',
    500: '#321ba0',
    950: '#000000',
  },
}
SCSS
$custom: #321ba0;
$custom-light: #7b5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#321ba0",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 160
  },
  "hsl": {
    "h": 250.376,
    "s": 71.123,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36388,
    "c": 0.1949,
    "h": 278.4
  },
  "luminance": 0.04
}

Semantic roles & 50–950 ramp

primary
#321BA0
secondary
#B1C552
accent
#EE3ACF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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