#321B7E#321B7E

#321B7E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.154 H 284.6°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#321B7E
RGBrgb(50, 27, 126)
HSLhsl(254, 65%, 30%)
HSVhsv(254, 79%, 49%)
CMYKcmyk(60.3%, 78.6%, 0%, 50.6%)
CIE-LABlab(19.92, 38.26, -51.80)
CIE-LCHlch(19.92, 64.40, 306.45°)
OKLaboklab(32.67% 0.0389 -0.1492)
OKLCHoklch(32.67% 0.154 284.6)
XYZxyz(5.4721, 2.9680, 20.0192)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B7E #677E1B
analogous
#1B367E #321B7E #631B7E
triadic
#321B7E #7E321B #1B7E32
tetradic
#321B7E #7E1B36 #677E1B #1B7E63
square
#321B7E #7E1B36 #677E1B #1B7E63
split-complementary
#321B7E #7E631B #367E1B
monochromatic
#0A0519 #1E104C #321B7E #4626B0 #613ED6

Accessibility & contrast

On white

13.18
#321B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#321B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B7E
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B7E#FFFFFF#000000##FFFFFF
##321B7E1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#06374B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321b7e;
/* rgb */ color: rgb(50, 27, 126);
/* oklch */ color: oklch(32.7% 0.154 284.6);
Tailwind
colors: {
  custom: {
    50: '#745aa4',
    500: '#321b7e',
    950: '#000000',
  },
}
SCSS
$custom: #321b7e;
$custom-light: #745aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#321b7e",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 253.939,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.32668,
    "c": 0.15424,
    "h": 284.6
  },
  "luminance": 0.02968
}

Semantic roles & 50–950 ramp

primary
#321B7E
secondary
#98B243
accent
#E840C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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