#321770#321770

#321770 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.141 H 289.1°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#321770
RGBrgb(50, 23, 112)
HSLhsl(258, 66%, 26%)
HSVhsv(258, 79%, 44%)
CMYKcmyk(55.4%, 79.5%, 0%, 56.1%)
CIE-LABlab(17.74, 36.06, -46.40)
CIE-LCHlch(17.74, 58.76, 307.86°)
OKLaboklab(30.71% 0.0461 -0.1334)
OKLCHoklch(30.71% 0.141 289.1)
XYZxyz(4.5456, 2.4605, 15.5615)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321770 #557017
analogous
#172970 #321770 #5F1770
triadic
#321770 #703217 #177032
tetradic
#321770 #701729 #557017 #17705F
square
#321770 #701729 #557017 #17705F
split-complementary
#321770 #705F17 #297017
monochromatic
#0B0519 #1B0D3D #321770 #4921A3 #602DD4

Accessibility & contrast

On white

14.07
#321770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#321770 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321770
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321770#FFFFFF#000000##FFFFFF
##3217701.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#1A3043
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321770;
/* rgb */ color: rgb(50, 23, 112);
/* oklch */ color: oklch(30.7% 0.141 289.1);
Tailwind
colors: {
  custom: {
    50: '#72579a',
    500: '#321770',
    950: '#000000',
  },
}
SCSS
$custom: #321770;
$custom-light: #72579a;
$custom-dark: #000000;
JSON
{
  "hex": "#321770",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 112
  },
  "hsl": {
    "h": 258.202,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30705,
    "c": 0.14114,
    "h": 289.1
  },
  "luminance": 0.02461
}

Semantic roles & 50–950 ramp

primary
#321770
secondary
#86A63D
accent
#E93FB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #321770

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

Preview Lab → · Contrast checker → · Palette generator →

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