#321F77#321F77

#321F77 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.141 H 285.4°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#321F77
RGBrgb(50, 31, 119)
HSLhsl(253, 59%, 29%)
HSVhsv(253, 74%, 47%)
CMYKcmyk(58%, 73.9%, 0%, 53.3%)
CIE-LABlab(20.00, 33.82, -47.19)
CIE-LCHlch(20.00, 58.06, 305.63°)
OKLaboklab(32.52% 0.0374 -0.1358)
OKLCHoklch(32.52% 0.141 285.4)
XYZxyz(5.1341, 2.9897, 17.7557)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F77 #64771F
analogous
#1F3877 #321F77 #5E1F77
triadic
#321F77 #77321F #1F7732
tetradic
#321F77 #771F38 #64771F #1F775E
square
#321F77 #771F38 #64771F #1F775E
split-complementary
#321F77 #775E1F #38771F
monochromatic
#0A0618 #1E1246 #321F77 #462CA8 #6143CE

Accessibility & contrast

On white

13.14
#321F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321F77
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F77#FFFFFF#000000##FFFFFF
##321F771.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#123648
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321f77;
/* rgb */ color: rgb(50, 31, 119);
/* oklch */ color: oklch(32.5% 0.141 285.4);
Tailwind
colors: {
  custom: {
    50: '#725c9f',
    500: '#321f77',
    950: '#000000',
  },
}
SCSS
$custom: #321f77;
$custom-light: #725c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#321f77",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 252.955,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32516,
    "c": 0.14084,
    "h": 285.4
  },
  "luminance": 0.0299
}

Semantic roles & 50–950 ramp

primary
#321F77
secondary
#95AB47
accent
#E246C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #321F77

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

Preview Lab → · Contrast checker → · Palette generator →

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