#321674#321674

#321674 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.147 H 288.1°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#321674
RGBrgb(50, 22, 116)
HSLhsl(258, 68%, 27%)
HSVhsv(258, 81%, 45%)
CMYKcmyk(56.9%, 81%, 0%, 54.5%)
CIE-LABlab(17.98, 37.77, -48.59)
CIE-LCHlch(17.98, 61.55, 307.86°)
OKLaboklab(31% 0.0457 -0.1398)
OKLCHoklch(31% 0.147 288.1)
XYZxyz(4.7538, 2.5126, 16.7541)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321674 #587416
analogous
#162974 #321674 #611674
triadic
#321674 #743216 #167432
tetradic
#321674 #741629 #587416 #167461
square
#321674 #741629 #587416 #167461
split-complementary
#321674 #746116 #297416
monochromatic
#0B051A #1C0C41 #321674 #4820A7 #602DD7

Accessibility & contrast

On white

13.98
#321674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#321674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321674
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321674#FFFFFF#000000##FFFFFF
##3216741.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#163145
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321674;
/* rgb */ color: rgb(50, 22, 116);
/* oklch */ color: oklch(31.0% 0.147 288.1);
Tailwind
colors: {
  custom: {
    50: '#72579d',
    500: '#321674',
    950: '#000000',
  },
}
SCSS
$custom: #321674;
$custom-light: #72579d;
$custom-dark: #000000;
JSON
{
  "hex": "#321674",
  "rgb": {
    "r": 50,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 257.872,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30996,
    "c": 0.1471,
    "h": 288.1
  },
  "luminance": 0.02513
}

Semantic roles & 50–950 ramp

primary
#321674
secondary
#89AA3C
accent
#EB3DB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321674

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

Preview Lab → · Contrast checker → · Palette generator →

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