#321B3E#321B3E

#321B3E is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.0% C 0.069 H 313.0°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#321B3E
RGBrgb(50, 27, 62)
HSLhsl(279, 39%, 17%)
HSVhsv(279, 56%, 24%)
CMYKcmyk(19.4%, 56.5%, 0%, 75.7%)
CIE-LABlab(14.46, 18.93, -18.00)
CIE-LCHlch(14.46, 26.12, 316.45°)
OKLaboklab(27.04% 0.0467 -0.0501)
OKLCHoklch(27.04% 0.069 313)
XYZxyz(2.5767, 1.8098, 4.7701)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B3E #273E1B
analogous
#211B3E #321B3E #3E1B38
triadic
#321B3E #3E321B #1B3E32
tetradic
#321B3E #3E211B #273E1B #1B383E
square
#321B3E #3E211B #273E1B #1B383E
split-complementary
#321B3E #383E1B #1B3E21
monochromatic
#110915 #110915 #321B3E #542E69 #774093

Accessibility & contrast

On white

15.42
#321B3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#321B3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B3E
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B3E#FFFFFF#000000##FFFFFF
##321B3E1.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13233F
Deuteranopia (green-blind)
#1A253D
Tritanopia (blue-blind)
#312029
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321b3e;
/* rgb */ color: rgb(50, 27, 62);
/* oklch */ color: oklch(27.0% 0.069 313.0);
Tailwind
colors: {
  custom: {
    50: '#6b5873',
    500: '#321b3e',
    950: '#000000',
  },
}
SCSS
$custom: #321b3e;
$custom-light: #6b5873;
$custom-dark: #000000;
JSON
{
  "hex": "#321b3e",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 62
  },
  "hsl": {
    "h": 279.429,
    "s": 39.326,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2704,
    "c": 0.06851,
    "h": 313
  },
  "luminance": 0.0181
}

Semantic roles & 50–950 ramp

primary
#321B3E
secondary
#537342
accent
#CF5981
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #321B3E

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

Preview Lab → · Contrast checker → · Palette generator →

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