#321D70#321D70

#321D70 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.134 H 287.7°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#321D70
RGBrgb(50, 29, 112)
HSLhsl(255, 59%, 28%)
HSVhsv(255, 74%, 44%)
CMYKcmyk(55.4%, 74.1%, 0%, 56.1%)
CIE-LABlab(18.91, 32.75, -44.47)
CIE-LCHlch(18.91, 55.23, 306.37°)
OKLaboklab(31.54% 0.0408 -0.1278)
OKLCHoklch(31.54% 0.134 287.7)
XYZxyz(4.6785, 2.7265, 15.6058)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D70 #5B701D
analogous
#1D3170 #321D70 #5C1D70
triadic
#321D70 #70321D #1D7032
tetradic
#321D70 #701D31 #5B701D #1D705C
square
#321D70 #701D31 #5B701D #1D705C
split-complementary
#321D70 #705C1D #31701D
monochromatic
#0B0618 #1C103F #321D70 #482AA1 #603BCC

Accessibility & contrast

On white

13.59
#321D70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#321D70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D70
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D70#FFFFFF#000000##FFFFFF
##321D701.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#1A3344
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321d70;
/* rgb */ color: rgb(50, 29, 112);
/* oklch */ color: oklch(31.5% 0.134 287.7);
Tailwind
colors: {
  custom: {
    50: '#715b9a',
    500: '#321d70',
    950: '#000000',
  },
}
SCSS
$custom: #321d70;
$custom-light: #715b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#321d70",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 112
  },
  "hsl": {
    "h": 255.181,
    "s": 58.865,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31535,
    "c": 0.13413,
    "h": 287.7
  },
  "luminance": 0.02727
}

Semantic roles & 50–950 ramp

primary
#321D70
secondary
#8CA444
accent
#E246BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321D70

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

Preview Lab → · Contrast checker → · Palette generator →

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