#321E7A#321E7A

#321E7A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.146 H 284.9°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#321E7A
RGBrgb(50, 30, 122)
HSLhsl(253, 61%, 30%)
HSVhsv(253, 75%, 48%)
CMYKcmyk(59%, 75.4%, 0%, 52.2%)
CIE-LABlab(20.09, 35.36, -48.97)
CIE-LCHlch(20.09, 60.40, 305.83°)
OKLaboklab(32.67% 0.0376 -0.141)
OKLCHoklch(32.67% 0.146 284.9)
XYZxyz(5.2914, 3.0115, 18.7110)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E7A #667A1E
analogous
#1E387A #321E7A #601E7A
triadic
#321E7A #7A321E #1E7A32
tetradic
#321E7A #7A1E38 #667A1E #1E7A60
square
#321E7A #7A1E38 #667A1E #1E7A60
split-complementary
#321E7A #7A601E #387A1E
monochromatic
#0A0619 #1E1249 #321E7A #462AAB #6142D0

Accessibility & contrast

On white

13.11
#321E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#321E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E7A
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E7A#FFFFFF#000000##FFFFFF
##321E7A1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#0E374A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321e7a;
/* rgb */ color: rgb(50, 30, 122);
/* oklch */ color: oklch(32.7% 0.146 284.9);
Tailwind
colors: {
  custom: {
    50: '#735ca1',
    500: '#321e7a',
    950: '#000000',
  },
}
SCSS
$custom: #321e7a;
$custom-light: #735ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#321e7a",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 253.043,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32667,
    "c": 0.14591,
    "h": 284.9
  },
  "luminance": 0.03012
}

Semantic roles & 50–950 ramp

primary
#321E7A
secondary
#97AE46
accent
#E444C1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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