#321D5B#321D5B

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

Color values

HEX#321D5B
RGBrgb(50, 29, 91)
HSLhsl(260, 52%, 24%)
HSVhsv(260, 68%, 36%)
CMYKcmyk(45.1%, 68.1%, 0%, 64.3%)
CIE-LABlab(17.05, 26.13, -33.71)
CIE-LCHlch(17.05, 42.65, 307.79°)
OKLaboklab(29.61% 0.0442 -0.0962)
OKLCHoklch(29.61% 0.106 294.7)
XYZxyz(3.6426, 2.3121, 10.1499)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D5B #465B1D
analogous
#1D275B #321D5B #511D5B
triadic
#321D5B #5B321D #1D5B32
tetradic
#321D5B #5B1D27 #465B1D #1D5B51
square
#321D5B #5B1D27 #465B1D #1D5B51
split-complementary
#321D5B #5B511D #275B1D
monochromatic
#0D0717 #180E2D #321D5B #4B2C89 #653BB8

Accessibility & contrast

On white

14.36
#321D5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#321D5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D5B
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D5B#FFFFFF#000000##FFFFFF
##321D5B1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5D
Deuteranopia (green-blind)
#00295A
Tritanopia (blue-blind)
#272B39
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321d5b;
/* rgb */ color: rgb(50, 29, 91);
/* oklch */ color: oklch(29.6% 0.106 294.7);
Tailwind
colors: {
  custom: {
    50: '#6e5a8a',
    500: '#321d5b',
    950: '#000000',
  },
}
SCSS
$custom: #321d5b;
$custom-light: #6e5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#321d5b",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 91
  },
  "hsl": {
    "h": 260.323,
    "s": 51.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29612,
    "c": 0.10582,
    "h": 294.7
  },
  "luminance": 0.02312
}

Semantic roles & 50–950 ramp

primary
#321D5B
secondary
#769044
accent
#DB4DAB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #321D5B

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

Preview Lab → · Contrast checker → · Palette generator →

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