#321B61#321B61

#321B61 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.8% C 0.117 H 293.0°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#321B61
RGBrgb(50, 27, 97)
HSLhsl(260, 56%, 24%)
HSVhsv(260, 72%, 38%)
CMYKcmyk(48.5%, 72.2%, 0%, 62%)
CIE-LABlab(17.11, 29.23, -37.60)
CIE-LCHlch(17.11, 47.62, 307.86°)
OKLaboklab(29.82% 0.0458 -0.1076)
OKLCHoklch(29.82% 0.117 293)
XYZxyz(3.8644, 2.3249, 11.5521)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B61 #4A611B
analogous
#1B2761 #321B61 #551B61
triadic
#321B61 #61321B #1B6132
tetradic
#321B61 #611B27 #4A611B #1B6155
square
#321B61 #611B27 #4A611B #1B6155
split-complementary
#321B61 #61551B #27611B
monochromatic
#0C0718 #190E31 #321B61 #4B2891 #6336C1

Accessibility & contrast

On white

14.33
#321B61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321B61
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B61#FFFFFF#000000##FFFFFF
##321B611.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B63
Deuteranopia (green-blind)
#002960
Tritanopia (blue-blind)
#242C3B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321b61;
/* rgb */ color: rgb(50, 27, 97);
/* oklch */ color: oklch(29.8% 0.117 293.0);
Tailwind
colors: {
  custom: {
    50: '#6f598f',
    500: '#321b61',
    950: '#000000',
  },
}
SCSS
$custom: #321b61;
$custom-light: #6f598f;
$custom-dark: #000000;
JSON
{
  "hex": "#321b61",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 97
  },
  "hsl": {
    "h": 259.714,
    "s": 56.452,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29817,
    "c": 0.11694,
    "h": 293
  },
  "luminance": 0.02325
}

Semantic roles & 50–950 ramp

primary
#321B61
secondary
#7B9741
accent
#E048AE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #321B61

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

Preview Lab → · Contrast checker → · Palette generator →

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