#321B47#321B47

#321B47 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.081 H 305.9°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#321B47
RGBrgb(50, 27, 71)
HSLhsl(271, 45%, 19%)
HSVhsv(271, 62%, 28%)
CMYKcmyk(29.6%, 62%, 0%, 72.2%)
CIE-LABlab(15.04, 21.42, -23.34)
CIE-LCHlch(15.04, 31.68, 312.55°)
OKLaboklab(27.67% 0.0476 -0.0657)
OKLCHoklch(27.67% 0.081 305.9)
XYZxyz(2.8444, 1.9169, 6.1802)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B47 #30471B
analogous
#1C1B47 #321B47 #471B46
triadic
#321B47 #47321B #1B4732
tetradic
#321B47 #471C1B #30471B #1B4647
square
#321B47 #471C1B #30471B #1B4647
split-complementary
#321B47 #46471B #1B471C
monochromatic
#100816 #130A1B #321B47 #512C73 #703DA0

Accessibility & contrast

On white

15.18
#321B47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321B47
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B47#FFFFFF#000000##FFFFFF
##321B471.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2548
Deuteranopia (green-blind)
#142646
Tritanopia (blue-blind)
#2F232E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321b47;
/* rgb */ color: rgb(50, 27, 71);
/* oklch */ color: oklch(27.7% 0.081 305.9);
Tailwind
colors: {
  custom: {
    50: '#6c587a',
    500: '#321b47',
    950: '#000000',
  },
}
SCSS
$custom: #321b47;
$custom-light: #6c587a;
$custom-dark: #000000;
JSON
{
  "hex": "#321b47",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 71
  },
  "hsl": {
    "h": 271.364,
    "s": 44.898,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27666,
    "c": 0.08113,
    "h": 305.9
  },
  "luminance": 0.01917
}

Semantic roles & 50–950 ramp

primary
#321B47
secondary
#5E7D41
accent
#D55391
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #321B47

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

Preview Lab → · Contrast checker → · Palette generator →

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