#321F59#321F59

#321F59 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.8% C 0.100 H 294.7°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#321F59
RGBrgb(50, 31, 89)
HSLhsl(260, 48%, 24%)
HSVhsv(260, 65%, 35%)
CMYKcmyk(43.8%, 65.2%, 0%, 65.1%)
CIE-LABlab(17.36, 24.23, -31.86)
CIE-LCHlch(17.36, 40.03, 307.26°)
OKLaboklab(29.79% 0.0417 -0.0907)
OKLCHoklch(29.79% 0.1 294.7)
XYZxyz(3.6081, 2.3793, 9.7184)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F59 #46591F
analogous
#1F2959 #321F59 #4F1F59
triadic
#321F59 #59321F #1F5932
tetradic
#321F59 #591F29 #46591F #1F594F
square
#321F59 #591F29 #46591F #1F594F
split-complementary
#321F59 #594F1F #29591F
monochromatic
#0D0817 #180F2C #321F59 #4B2F86 #653FB4

Accessibility & contrast

On white

14.23
#321F59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#321F59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F59
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F59#FFFFFF#000000##FFFFFF
##321F591.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5B
Deuteranopia (green-blind)
#022A58
Tritanopia (blue-blind)
#282C38
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321f59;
/* rgb */ color: rgb(50, 31, 89);
/* oklch */ color: oklch(29.8% 0.100 294.7);
Tailwind
colors: {
  custom: {
    50: '#6d5b88',
    500: '#321f59',
    950: '#000000',
  },
}
SCSS
$custom: #321f59;
$custom-light: #6d5b88;
$custom-dark: #000000;
JSON
{
  "hex": "#321f59",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 89
  },
  "hsl": {
    "h": 259.655,
    "s": 48.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29792,
    "c": 0.09985,
    "h": 294.7
  },
  "luminance": 0.02379
}

Semantic roles & 50–950 ramp

primary
#321F59
secondary
#768E46
accent
#D850AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #321F59

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

Preview Lab → · Contrast checker → · Palette generator →

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