#321A70#321A70

#321A70 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.138 H 288.4°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#321A70
RGBrgb(50, 26, 112)
HSLhsl(257, 62%, 27%)
HSVhsv(257, 77%, 44%)
CMYKcmyk(55.4%, 76.8%, 0%, 56.1%)
CIE-LABlab(18.31, 34.46, -45.47)
CIE-LCHlch(18.31, 57.05, 307.16°)
OKLaboklab(31.1% 0.0435 -0.1307)
OKLCHoklch(31.1% 0.138 288.4)
XYZxyz(4.6086, 2.5865, 15.5825)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A70 #58701A
analogous
#1A2D70 #321A70 #5D1A70
triadic
#321A70 #70321A #1A7032
tetradic
#321A70 #701A2D #58701A #1A705D
square
#321A70 #701A2D #58701A #1A705D
split-complementary
#321A70 #705D1A #2D701A
monochromatic
#0B0619 #1C0E3E #321A70 #4826A2 #6034D0

Accessibility & contrast

On white

13.84
#321A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#321A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A70
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A70#FFFFFF#000000##FFFFFF
##321A701.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321a70;
/* rgb */ color: rgb(50, 26, 112);
/* oklch */ color: oklch(31.1% 0.138 288.4);
Tailwind
colors: {
  custom: {
    50: '#71599a',
    500: '#321a70',
    950: '#000000',
  },
}
SCSS
$custom: #321a70;
$custom-light: #71599a;
$custom-dark: #000000;
JSON
{
  "hex": "#321a70",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 112
  },
  "hsl": {
    "h": 256.744,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31104,
    "c": 0.13775,
    "h": 288.4
  },
  "luminance": 0.02587
}

Semantic roles & 50–950 ramp

primary
#321A70
secondary
#89A541
accent
#E542B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321A70

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

Preview Lab → · Contrast checker → · Palette generator →

#321A70 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva