#321B41#321B41

#321B41 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.073 H 310.4°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#321B41
RGBrgb(50, 27, 65)
HSLhsl(276, 41%, 18%)
HSVhsv(276, 58%, 25%)
CMYKcmyk(23.1%, 58.5%, 0%, 74.5%)
CIE-LABlab(14.64, 19.74, -19.80)
CIE-LCHlch(14.64, 27.96, 314.91°)
OKLaboklab(27.24% 0.0471 -0.0554)
OKLCHoklch(27.24% 0.073 310.4)
XYZxyz(2.6613, 1.8437, 5.2157)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B41 #2A411B
analogous
#1F1B41 #321B41 #411B3D
triadic
#321B41 #41321B #1B4132
tetradic
#321B41 #411F1B #2A411B #1B3D41
square
#321B41 #411F1B #2A411B #1B3D41
split-complementary
#321B41 #3D411B #1B411F
monochromatic
#110916 #110916 #321B41 #532D6C #753F97

Accessibility & contrast

On white

15.34
#321B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#321B41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B41
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B41#FFFFFF#000000##FFFFFF
##321B411.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112442
Deuteranopia (green-blind)
#182540
Tritanopia (blue-blind)
#30212B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321b41;
/* rgb */ color: rgb(50, 27, 65);
/* oklch */ color: oklch(27.2% 0.073 310.4);
Tailwind
colors: {
  custom: {
    50: '#6b5876',
    500: '#321b41',
    950: '#000000',
  },
}
SCSS
$custom: #321b41;
$custom-light: #6b5876;
$custom-dark: #000000;
JSON
{
  "hex": "#321b41",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 65
  },
  "hsl": {
    "h": 276.316,
    "s": 41.304,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27241,
    "c": 0.07269,
    "h": 310.4
  },
  "luminance": 0.01844
}

Semantic roles & 50–950 ramp

primary
#321B41
secondary
#567641
accent
#D15787
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #321B41

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

Preview Lab → · Contrast checker → · Palette generator →

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