#321B62#321B62

#321B62 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.9% C 0.118 H 292.7°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#321B62
RGBrgb(50, 27, 98)
HSLhsl(259, 57%, 25%)
HSVhsv(259, 72%, 38%)
CMYKcmyk(49%, 72.4%, 0%, 61.6%)
CIE-LABlab(17.20, 29.53, -38.12)
CIE-LCHlch(17.20, 48.22, 307.77°)
OKLaboklab(29.91% 0.0456 -0.1091)
OKLCHoklch(29.91% 0.118 292.7)
XYZxyz(3.9113, 2.3437, 11.7992)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B62 #4B621B
analogous
#1B2762 #321B62 #561B62
triadic
#321B62 #62321B #1B6232
tetradic
#321B62 #621B27 #4B621B #1B6256
square
#321B62 #621B27 #4B621B #1B6256
split-complementary
#321B62 #62561B #27621B
monochromatic
#0C0718 #1A0E32 #321B62 #4A2892 #6335C2

Accessibility & contrast

On white

14.30
#321B62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321B62
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B62#FFFFFF#000000##FFFFFF
##321B621.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B64
Deuteranopia (green-blind)
#002961
Tritanopia (blue-blind)
#242D3C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321b62;
/* rgb */ color: rgb(50, 27, 98);
/* oklch */ color: oklch(29.9% 0.118 292.7);
Tailwind
colors: {
  custom: {
    50: '#6f598f',
    500: '#321b62',
    950: '#000000',
  },
}
SCSS
$custom: #321b62;
$custom-light: #6f598f;
$custom-dark: #000000;
JSON
{
  "hex": "#321b62",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 98
  },
  "hsl": {
    "h": 259.437,
    "s": 56.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29909,
    "c": 0.11827,
    "h": 292.7
  },
  "luminance": 0.02344
}

Semantic roles & 50–950 ramp

primary
#321B62
secondary
#7C9841
accent
#E048AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #321B62

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

Preview Lab → · Contrast checker → · Palette generator →

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