#321895#321895

#321895 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.184 H 280.4°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#321895
RGBrgb(50, 24, 149)
HSLhsl(252, 72%, 34%)
HSVhsv(252, 84%, 58%)
CMYKcmyk(66.4%, 83.9%, 0%, 41.6%)
CIE-LABlab(21.95, 46.67, -62.86)
CIE-LCHlch(21.95, 78.28, 306.59°)
OKLaboklab(34.83% 0.0334 -0.1814)
OKLCHoklch(34.83% 0.184 280.4)
XYZxyz(7.0651, 3.5007, 28.7313)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321895 #7B9518
analogous
#183D95 #321895 #711895
triadic
#321895 #953218 #189532
tetradic
#321895 #95183D #7B9518 #189571
square
#321895 #95183D #7B9518 #189571
split-complementary
#321895 #957118 #3D9518
monochromatic
#0F072C #201060 #321895 #4420CA #6646E1

Accessibility & contrast

On white

12.35
#321895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#321895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321895
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321895#FFFFFF#000000##FFFFFF
##3218951.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#003F58
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #321895;
/* rgb */ color: rgb(50, 24, 149);
/* oklch */ color: oklch(34.8% 0.184 280.4);
Tailwind
colors: {
  custom: {
    50: '#795ab5',
    500: '#321895',
    950: '#000000',
  },
}
SCSS
$custom: #321895;
$custom-light: #795ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#321895",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 252.48,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3483,
    "c": 0.18447,
    "h": 280.4
  },
  "luminance": 0.03501
}

Semantic roles & 50–950 ramp

primary
#321895
secondary
#A9C246
accent
#EF39C9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321895

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

Preview Lab → · Contrast checker → · Palette generator →

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