#321B68#321B68

#321B68 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.5% C 0.126 H 290.6°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#321B68
RGBrgb(50, 27, 104)
HSLhsl(258, 59%, 26%)
HSVhsv(258, 74%, 41%)
CMYKcmyk(51.9%, 74%, 0%, 59.2%)
CIE-LABlab(17.74, 31.40, -41.17)
CIE-LCHlch(17.74, 51.78, 307.33°)
OKLaboklab(30.47% 0.0444 -0.1181)
OKLCHoklch(30.47% 0.126 290.6)
XYZxyz(4.2053, 2.4613, 13.3475)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B68 #51681B
analogous
#1B2A68 #321B68 #581B68
triadic
#321B68 #68321B #1B6832
tetradic
#321B68 #681B2A #51681B #1B6858
square
#321B68 #681B2A #51681B #1B6858
split-complementary
#321B68 #68581B #2A681B
monochromatic
#0C0618 #1B0E37 #321B68 #492899 #6134C9

Accessibility & contrast

On white

14.07
#321B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#321B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B68
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B68#FFFFFF#000000##FFFFFF
##321B681.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#202F3F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321b68;
/* rgb */ color: rgb(50, 27, 104);
/* oklch */ color: oklch(30.5% 0.126 290.6);
Tailwind
colors: {
  custom: {
    50: '#705994',
    500: '#321b68',
    950: '#000000',
  },
}
SCSS
$custom: #321b68;
$custom-light: #705994;
$custom-dark: #000000;
JSON
{
  "hex": "#321b68",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 257.922,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30469,
    "c": 0.12619,
    "h": 290.6
  },
  "luminance": 0.02461
}

Semantic roles & 50–950 ramp

primary
#321B68
secondary
#829D42
accent
#E246B3
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321B68

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

Preview Lab → · Contrast checker → · Palette generator →

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