#321B45#321B45

#321B45 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.5% C 0.078 H 307.3°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#321B45
RGBrgb(50, 27, 69)
HSLhsl(273, 44%, 19%)
HSVhsv(273, 61%, 27%)
CMYKcmyk(27.5%, 60.9%, 0%, 72.9%)
CIE-LABlab(14.91, 20.85, -22.17)
CIE-LCHlch(14.91, 30.43, 313.25°)
OKLaboklab(27.52% 0.0475 -0.0623)
OKLCHoklch(27.52% 0.078 307.3)
XYZxyz(2.7813, 1.8917, 5.8477)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B45 #2E451B
analogous
#1D1B45 #321B45 #451B43
triadic
#321B45 #45321B #1B4532
tetradic
#321B45 #451D1B #2E451B #1B4345
square
#321B45 #451D1B #2E451B #1B4345
split-complementary
#321B45 #43451B #1B451D
monochromatic
#100916 #120A19 #321B45 #522C71 #723D9D

Accessibility & contrast

On white

15.24
#321B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#321B45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B45
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B45#FFFFFF#000000##FFFFFF
##321B451.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2546
Deuteranopia (green-blind)
#152644
Tritanopia (blue-blind)
#2F232D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321b45;
/* rgb */ color: rgb(50, 27, 69);
/* oklch */ color: oklch(27.5% 0.078 307.3);
Tailwind
colors: {
  custom: {
    50: '#6b5879',
    500: '#321b45',
    950: '#000000',
  },
}
SCSS
$custom: #321b45;
$custom-light: #6b5879;
$custom-dark: #000000;
JSON
{
  "hex": "#321b45",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 69
  },
  "hsl": {
    "h": 272.857,
    "s": 43.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27521,
    "c": 0.07831,
    "h": 307.3
  },
  "luminance": 0.01892
}

Semantic roles & 50–950 ramp

primary
#321B45
secondary
#5B7B41
accent
#D3548E
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #321B45

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

Preview Lab → · Contrast checker → · Palette generator →

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