#321773#321773

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

Color values

HEX#321773
RGBrgb(50, 23, 115)
HSLhsl(258, 67%, 27%)
HSVhsv(258, 80%, 45%)
CMYKcmyk(56.5%, 80%, 0%, 54.9%)
CIE-LABlab(18.05, 36.97, -47.83)
CIE-LCHlch(18.05, 60.45, 307.70°)
OKLaboklab(31.01% 0.0452 -0.1376)
OKLCHoklch(31.01% 0.145 288.2)
XYZxyz(4.7154, 2.5285, 16.4559)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321773 #587317
analogous
#172A73 #321773 #601773
triadic
#321773 #733217 #177332
tetradic
#321773 #73172A #587317 #177360
square
#321773 #73172A #587317 #177360
split-complementary
#321773 #736017 #2A7317
monochromatic
#0B051A #1C0D40 #321773 #4821A6 #602FD5

Accessibility & contrast

On white

13.95
#321773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#321773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321773
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321773#FFFFFF#000000##FFFFFF
##3217731.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#173144
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321773;
/* rgb */ color: rgb(50, 23, 115);
/* oklch */ color: oklch(31.0% 0.145 288.2);
Tailwind
colors: {
  custom: {
    50: '#72589c',
    500: '#321773',
    950: '#000000',
  },
}
SCSS
$custom: #321773;
$custom-light: #72589c;
$custom-dark: #000000;
JSON
{
  "hex": "#321773",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 257.609,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31014,
    "c": 0.14485,
    "h": 288.2
  },
  "luminance": 0.02529
}

Semantic roles & 50–950 ramp

primary
#321773
secondary
#89A93D
accent
#EA3EB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321773

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

Preview Lab → · Contrast checker → · Palette generator →

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