#321F60#321F60

#321F60 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.4% C 0.110 H 292.0°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#321F60
RGBrgb(50, 31, 96)
HSLhsl(258, 51%, 25%)
HSVhsv(258, 68%, 38%)
CMYKcmyk(47.9%, 67.7%, 0%, 62.4%)
CIE-LABlab(17.93, 26.44, -35.60)
CIE-LCHlch(17.93, 44.35, 306.60°)
OKLaboklab(30.38% 0.0412 -0.1017)
OKLCHoklch(30.38% 0.11 292)
XYZxyz(3.9161, 2.5025, 11.3408)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F60 #4D601F
analogous
#1F2D60 #321F60 #521F60
triadic
#321F60 #60321F #1F6032
tetradic
#321F60 #601F2D #4D601F #1F6052
square
#321F60 #601F2D #4D601F #1F6052
split-complementary
#321F60 #60521F #2D601F
monochromatic
#0C0717 #1A1032 #321F60 #4A2E8E #623DBD

Accessibility & contrast

On white

13.99
#321F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#321F60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F60
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F60#FFFFFF#000000##FFFFFF
##321F601.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D62
Deuteranopia (green-blind)
#002B5F
Tritanopia (blue-blind)
#252E3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321f60;
/* rgb */ color: rgb(50, 31, 96);
/* oklch */ color: oklch(30.4% 0.110 292.0);
Tailwind
colors: {
  custom: {
    50: '#6e5c8e',
    500: '#321f60',
    950: '#000000',
  },
}
SCSS
$custom: #321f60;
$custom-light: #6e5c8e;
$custom-dark: #000000;
JSON
{
  "hex": "#321f60",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 96
  },
  "hsl": {
    "h": 257.538,
    "s": 51.181,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30383,
    "c": 0.10975,
    "h": 292
  },
  "luminance": 0.02503
}

Semantic roles & 50–950 ramp

primary
#321F60
secondary
#7E9546
accent
#DB4DB1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #321F60

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

Preview Lab → · Contrast checker → · Palette generator →

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