#321F57#321F57

#321F57 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.6% C 0.097 H 295.5°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#321F57
RGBrgb(50, 31, 87)
HSLhsl(260, 47%, 23%)
HSVhsv(260, 64%, 34%)
CMYKcmyk(42.5%, 64.4%, 0%, 65.9%)
CIE-LABlab(17.21, 23.61, -30.77)
CIE-LCHlch(17.21, 38.78, 307.50°)
OKLaboklab(29.63% 0.0418 -0.0875)
OKLCHoklch(29.63% 0.097 295.5)
XYZxyz(3.5252, 2.3461, 9.2821)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F57 #44571F
analogous
#1F2857 #321F57 #4E1F57
triadic
#321F57 #57321F #1F5732
tetradic
#321F57 #571F28 #44571F #1F574E
square
#321F57 #571F28 #44571F #1F574E
split-complementary
#321F57 #574E1F #28571F
monochromatic
#0D0817 #180F2A #321F57 #4C2F84 #663FB1

Accessibility & contrast

On white

14.29
#321F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#321F57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F57
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F57#FFFFFF#000000##FFFFFF
##321F571.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B59
Deuteranopia (green-blind)
#062A56
Tritanopia (blue-blind)
#292B37
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321f57;
/* rgb */ color: rgb(50, 31, 87);
/* oklch */ color: oklch(29.6% 0.097 295.5);
Tailwind
colors: {
  custom: {
    50: '#6d5b87',
    500: '#321f57',
    950: '#000000',
  },
}
SCSS
$custom: #321f57;
$custom-light: #6d5b87;
$custom-dark: #000000;
JSON
{
  "hex": "#321f57",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 87
  },
  "hsl": {
    "h": 260.357,
    "s": 47.458,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29629,
    "c": 0.09698,
    "h": 295.5
  },
  "luminance": 0.02346
}

Semantic roles & 50–950 ramp

primary
#321F57
secondary
#748C46
accent
#D751A9
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #321F57

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

Preview Lab → · Contrast checker → · Palette generator →

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