#321E8B#321E8B

#321E8B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.167 H 281.4°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#321E8B
RGBrgb(50, 30, 139)
HSLhsl(251, 64%, 33%)
HSVhsv(251, 78%, 55%)
CMYKcmyk(64%, 78.4%, 0%, 45.5%)
CIE-LABlab(21.84, 40.73, -56.83)
CIE-LCHlch(21.84, 69.92, 305.63°)
OKLaboklab(34.42% 0.0332 -0.1639)
OKLCHoklch(34.42% 0.167 281.4)
XYZxyz(6.4384, 3.4703, 24.7516)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E8B #778B1E
analogous
#1E408B #321E8B #681E8B
triadic
#321E8B #8B321E #1E8B32
tetradic
#321E8B #8B1E40 #778B1E #1E8B68
square
#321E8B #8B1E40 #778B1E #1E8B68
split-complementary
#321E8B #8B681E #408B1E
monochromatic
#0E0826 #201359 #321E8B #4429BD #654BD8

Accessibility & contrast

On white

12.40
#321E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#321E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E8B
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E8B#FFFFFF#000000##FFFFFF
##321E8B1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #321e8b;
/* rgb */ color: rgb(50, 30, 139);
/* oklch */ color: oklch(34.4% 0.167 281.4);
Tailwind
colors: {
  custom: {
    50: '#765dae',
    500: '#321e8b',
    950: '#000000',
  },
}
SCSS
$custom: #321e8b;
$custom-light: #765dae;
$custom-dark: #000000;
JSON
{
  "hex": "#321e8b",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 251.009,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34425,
    "c": 0.16726,
    "h": 281.4
  },
  "luminance": 0.03471
}

Semantic roles & 50–950 ramp

primary
#321E8B
secondary
#A6BB4A
accent
#E740C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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