#321894#321894

#321894 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.183 H 280.6°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#321894
RGBrgb(50, 24, 148)
HSLhsl(253, 72%, 34%)
HSVhsv(253, 84%, 58%)
CMYKcmyk(66.2%, 83.8%, 0%, 42%)
CIE-LABlab(21.83, 46.37, -62.43)
CIE-LCHlch(21.83, 77.77, 306.61°)
OKLaboklab(34.72% 0.0338 -0.1802)
OKLCHoklch(34.72% 0.183 280.6)
XYZxyz(6.9856, 3.4689, 28.3127)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321894 #7A9418
analogous
#183C94 #321894 #701894
triadic
#321894 #943218 #189432
tetradic
#321894 #94183C #7A9418 #189470
square
#321894 #94183C #7A9418 #189470
split-complementary
#321894 #947018 #3C9418
monochromatic
#0E072B #200F5F #321894 #4421C9 #6645E1

Accessibility & contrast

On white

12.40
#321894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#321894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##321894#FFFFFF#000000##FFFFFF
##3218941.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)
#003897
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#003F58
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #321894;
/* rgb */ color: rgb(50, 24, 148);
/* oklch */ color: oklch(34.7% 0.183 280.6);
Tailwind
colors: {
  custom: {
    50: '#795ab5',
    500: '#321894',
    950: '#000000',
  },
}
SCSS
$custom: #321894;
$custom-light: #795ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#321894",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 148
  },
  "hsl": {
    "h": 252.581,
    "s": 72.093,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34717,
    "c": 0.18332,
    "h": 280.6
  },
  "luminance": 0.03469
}

Semantic roles & 50–950 ramp

primary
#321894
secondary
#A8C246
accent
#EF39C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321894

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

Preview Lab → · Contrast checker → · Palette generator →

#321894 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva