#321F7E#321F7E

#321F7E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.150 H 283.8°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#321F7E
RGBrgb(50, 31, 126)
HSLhsl(252, 61%, 31%)
HSVhsv(252, 75%, 49%)
CMYKcmyk(60.3%, 75.4%, 0%, 50.6%)
CIE-LABlab(20.69, 36.07, -50.53)
CIE-LCHlch(20.69, 62.08, 305.52°)
OKLaboklab(33.21% 0.0358 -0.1456)
OKLCHoklch(33.21% 0.15 283.8)
XYZxyz(5.5701, 3.1641, 20.0518)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F7E #6B7E1F
analogous
#1F3B7E #321F7E #611F7E
triadic
#321F7E #7E321F #1F7E32
tetradic
#321F7E #7E1F3B #6B7E1F #1F7E61
square
#321F7E #7E1F3B #6B7E1F #1F7E61
split-complementary
#321F7E #7E611F #3B7E1F
monochromatic
#0B071C #1F134D #321F7E #452BAF #6246D1

Accessibility & contrast

On white

12.86
#321F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#321F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F7E
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F7E#FFFFFF#000000##FFFFFF
##321F7E1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#06394C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #321f7e;
/* rgb */ color: rgb(50, 31, 126);
/* oklch */ color: oklch(33.2% 0.150 283.8);
Tailwind
colors: {
  custom: {
    50: '#745da4',
    500: '#321f7e',
    950: '#000000',
  },
}
SCSS
$custom: #321f7e;
$custom-light: #745da4;
$custom-dark: #000000;
JSON
{
  "hex": "#321f7e",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 252,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33213,
    "c": 0.14989,
    "h": 283.8
  },
  "luminance": 0.03164
}

Semantic roles & 50–950 ramp

primary
#321F7E
secondary
#9CB148
accent
#E444C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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