#321B60#321B60

#321B60 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.7% C 0.116 H 293.4°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#321B60
RGBrgb(50, 27, 96)
HSLhsl(260, 56%, 24%)
HSVhsv(260, 72%, 38%)
CMYKcmyk(47.9%, 71.9%, 0%, 62.4%)
CIE-LABlab(17.02, 28.92, -37.08)
CIE-LCHlch(17.02, 47.02, 307.95°)
OKLaboklab(29.73% 0.0459 -0.1061)
OKLCHoklch(29.73% 0.116 293.4)
XYZxyz(3.8181, 2.3064, 11.3081)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B60 #49601B
analogous
#1B2760 #321B60 #551B60
triadic
#321B60 #60321B #1B6032
tetradic
#321B60 #601B27 #49601B #1B6055
square
#321B60 #601B27 #49601B #1B6055
split-complementary
#321B60 #60551B #27601B
monochromatic
#0C0718 #190E30 #321B60 #4B2890 #6436C0

Accessibility & contrast

On white

14.37
#321B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321B60
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B60#FFFFFF#000000##FFFFFF
##321B601.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B62
Deuteranopia (green-blind)
#00295F
Tritanopia (blue-blind)
#252C3B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321b60;
/* rgb */ color: rgb(50, 27, 96);
/* oklch */ color: oklch(29.7% 0.116 293.4);
Tailwind
colors: {
  custom: {
    50: '#6f598e',
    500: '#321b60',
    950: '#000000',
  },
}
SCSS
$custom: #321b60;
$custom-light: #6f598e;
$custom-dark: #000000;
JSON
{
  "hex": "#321b60",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 260,
    "s": 56.098,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29726,
    "c": 0.1156,
    "h": 293.4
  },
  "luminance": 0.02307
}

Semantic roles & 50–950 ramp

primary
#321B60
secondary
#799641
accent
#DF48AD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #321B60

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

Preview Lab → · Contrast checker → · Palette generator →

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