#321970#321970

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

Color values

HEX#321970
RGBrgb(50, 25, 112)
HSLhsl(257, 64%, 27%)
HSVhsv(257, 78%, 44%)
CMYKcmyk(55.4%, 77.7%, 0%, 56.1%)
CIE-LABlab(18.11, 35.00, -45.78)
CIE-LCHlch(18.11, 57.63, 307.40°)
OKLaboklab(30.97% 0.0444 -0.1316)
OKLCHoklch(30.97% 0.139 288.7)
XYZxyz(4.5868, 2.5430, 15.5753)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321970 #577019
analogous
#192C70 #321970 #5E1970
triadic
#321970 #703219 #197032
tetradic
#321970 #70192C #577019 #19705E
square
#321970 #70192C #577019 #19705E
split-complementary
#321970 #705E19 #2C7019
monochromatic
#0B0619 #1C0E3E #321970 #4824A2 #6032D1

Accessibility & contrast

On white

13.92
#321970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321970
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321970#FFFFFF#000000##FFFFFF
##3219701.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E73
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#1A3143
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321970;
/* rgb */ color: rgb(50, 25, 112);
/* oklch */ color: oklch(31.0% 0.139 288.7);
Tailwind
colors: {
  custom: {
    50: '#72599a',
    500: '#321970',
    950: '#000000',
  },
}
SCSS
$custom: #321970;
$custom-light: #72599a;
$custom-dark: #000000;
JSON
{
  "hex": "#321970",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 257.241,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30967,
    "c": 0.13892,
    "h": 288.7
  },
  "luminance": 0.02543
}

Semantic roles & 50–950 ramp

primary
#321970
secondary
#88A540
accent
#E741B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #321970

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

Preview Lab → · Contrast checker → · Palette generator →

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