#321F8E#321F8E

#321F8E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.170 H 280.8°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#321F8E
RGBrgb(50, 31, 142)
HSLhsl(250, 64%, 34%)
HSVhsv(250, 78%, 56%)
CMYKcmyk(64.8%, 78.2%, 0%, 44.3%)
CIE-LABlab(22.34, 41.15, -57.87)
CIE-LCHlch(22.34, 71.00, 305.42°)
OKLaboklab(34.87% 0.0317 -0.167)
OKLCHoklch(34.87% 0.17 280.8)
XYZxyz(6.6863, 3.6106, 25.9305)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F8E #7B8E1F
analogous
#1F448E #321F8E #6A1F8E
triadic
#321F8E #8E321F #1F8E32
tetradic
#321F8E #8E1F44 #7B8E1F #1F8E6A
square
#321F8E #8E1F44 #7B8E1F #1F8E6A
split-complementary
#321F8E #8E6A1F #448E1F
monochromatic
#0F092A #20145C #321F8E #442AC0 #664FD9

Accessibility & contrast

On white

12.19
#321F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#321F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F8E
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F8E#FFFFFF#000000##FFFFFF
##321F8E1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #321f8e;
/* rgb */ color: rgb(50, 31, 142);
/* oklch */ color: oklch(34.9% 0.170 280.8);
Tailwind
colors: {
  custom: {
    50: '#775eb0',
    500: '#321f8e',
    950: '#000000',
  },
}
SCSS
$custom: #321f8e;
$custom-light: #775eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#321f8e",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 250.27,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34873,
    "c": 0.16998,
    "h": 280.8
  },
  "luminance": 0.03611
}

Semantic roles & 50–950 ramp

primary
#321F8E
secondary
#A9BB4D
accent
#E741CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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