#321F74#321F74

#321F74 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.137 H 286.1°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#321F74
RGBrgb(50, 31, 116)
HSLhsl(253, 58%, 29%)
HSVhsv(253, 73%, 45%)
CMYKcmyk(56.9%, 73.3%, 0%, 54.5%)
CIE-LABlab(19.72, 32.86, -45.74)
CIE-LCHlch(19.72, 56.32, 305.69°)
OKLaboklab(32.22% 0.038 -0.1315)
OKLCHoklch(32.22% 0.137 286.1)
XYZxyz(4.9568, 2.9188, 16.8218)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F74 #61741F
analogous
#1F3774 #321F74 #5D1F74
triadic
#321F74 #74321F #1F7432
tetradic
#321F74 #741F37 #61741F #1F745D
square
#321F74 #741F37 #61741F #1F745D
split-complementary
#321F74 #745D1F #37741F
monochromatic
#0A0618 #1D1244 #321F74 #472CA4 #6041CC

Accessibility & contrast

On white

13.26
#321F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#321F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F74
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F74#FFFFFF#000000##FFFFFF
##321F741.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#163547
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321f74;
/* rgb */ color: rgb(50, 31, 116);
/* oklch */ color: oklch(32.2% 0.137 286.1);
Tailwind
colors: {
  custom: {
    50: '#725c9d',
    500: '#321f74',
    950: '#000000',
  },
}
SCSS
$custom: #321f74;
$custom-light: #725c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#321f74",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 253.412,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32223,
    "c": 0.13691,
    "h": 286.1
  },
  "luminance": 0.02919
}

Semantic roles & 50–950 ramp

primary
#321F74
secondary
#92A847
accent
#E147BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321F74

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

Preview Lab → · Contrast checker → · Palette generator →

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