#321870#321870

#321870 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.140 H 288.9°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#321870
RGBrgb(50, 24, 112)
HSLhsl(258, 65%, 27%)
HSVhsv(258, 79%, 44%)
CMYKcmyk(55.4%, 78.6%, 0%, 56.1%)
CIE-LABlab(17.92, 35.54, -46.09)
CIE-LCHlch(17.92, 58.20, 307.63°)
OKLaboklab(30.83% 0.0453 -0.1325)
OKLCHoklch(30.83% 0.14 288.9)
XYZxyz(4.5658, 2.5010, 15.5683)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321870 #567018
analogous
#182A70 #321870 #5E1870
triadic
#321870 #703218 #187032
tetradic
#321870 #70182A #567018 #18705E
square
#321870 #70182A #567018 #18705E
split-complementary
#321870 #705E18 #2A7018
monochromatic
#0B0519 #1C0D3E #321870 #4823A2 #6030D3

Accessibility & contrast

On white

14.00
#321870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321870
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321870#FFFFFF#000000##FFFFFF
##3218701.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321870;
/* rgb */ color: rgb(50, 24, 112);
/* oklch */ color: oklch(30.8% 0.140 288.9);
Tailwind
colors: {
  custom: {
    50: '#72589a',
    500: '#321870',
    950: '#000000',
  },
}
SCSS
$custom: #321870;
$custom-light: #72589a;
$custom-dark: #000000;
JSON
{
  "hex": "#321870",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 257.727,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30834,
    "c": 0.14005,
    "h": 288.9
  },
  "luminance": 0.02501
}

Semantic roles & 50–950 ramp

primary
#321870
secondary
#87A53E
accent
#E840B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #321870

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

Preview Lab → · Contrast checker → · Palette generator →

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