#321B4B#321B4B

#321B4B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.0% C 0.087 H 303.4°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#321B4B
RGBrgb(50, 27, 75)
HSLhsl(269, 47%, 20%)
HSVhsv(269, 64%, 29%)
CMYKcmyk(33.3%, 64%, 0%, 70.6%)
CIE-LABlab(15.33, 22.57, -25.64)
CIE-LCHlch(15.33, 34.16, 311.36°)
OKLaboklab(27.97% 0.0477 -0.0725)
OKLCHoklch(27.97% 0.087 303.4)
XYZxyz(2.9770, 1.9700, 6.8787)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B4B #344B1B
analogous
#1B1C4B #321B4B #4A1B4B
triadic
#321B4B #4B321B #1B4B32
tetradic
#321B4B #4B1B1C #344B1B #1B4B4A
square
#321B4B #4B1B1C #344B1B #1B4B4A
split-complementary
#321B4B #4B4A1B #1C4B1B
monochromatic
#0F0817 #140B1E #321B4B #502B78 #6E3BA5

Accessibility & contrast

On white

15.06
#321B4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#321B4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B4B
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B4B#FFFFFF#000000##FFFFFF
##321B4B1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07264D
Deuteranopia (green-blind)
#10264A
Tritanopia (blue-blind)
#2D2530
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321b4b;
/* rgb */ color: rgb(50, 27, 75);
/* oklch */ color: oklch(28.0% 0.087 303.4);
Tailwind
colors: {
  custom: {
    50: '#6c587d',
    500: '#321b4b',
    950: '#000000',
  },
}
SCSS
$custom: #321b4b;
$custom-light: #6c587d;
$custom-dark: #000000;
JSON
{
  "hex": "#321b4b",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 75
  },
  "hsl": {
    "h": 268.75,
    "s": 47.059,
    "l": 20
  },
  "oklch": {
    "l": 0.27966,
    "c": 0.08675,
    "h": 303.4
  },
  "luminance": 0.0197
}

Semantic roles & 50–950 ramp

primary
#321B4B
secondary
#628141
accent
#D75197
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321B4B

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

Preview Lab → · Contrast checker → · Palette generator →

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