#321D47#321D47

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

Color values

HEX#321D47
RGBrgb(50, 29, 71)
HSLhsl(270, 42%, 20%)
HSVhsv(270, 59%, 28%)
CMYKcmyk(29.6%, 59.2%, 0%, 72.2%)
CIE-LABlab(15.55, 20.10, -22.53)
CIE-LCHlch(15.55, 30.20, 311.74°)
OKLaboklab(28.04% 0.0444 -0.0634)
OKLCHoklch(28.04% 0.077 305)
XYZxyz(2.8918, 2.0118, 6.1960)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D47 #32471D
analogous
#1D1D47 #321D47 #471D47
triadic
#321D47 #47321D #1D4732
tetradic
#321D47 #471D1D #32471D #1D4747
square
#321D47 #471D1D #32471D #1D4747
split-complementary
#321D47 #47471D #1D471D
monochromatic
#0F0916 #130B1C #321D47 #512F72 #6F409E

Accessibility & contrast

On white

14.97
#321D47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#321D47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D47
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D47#FFFFFF#000000##FFFFFF
##321D471.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2648
Deuteranopia (green-blind)
#162746
Tritanopia (blue-blind)
#2E252E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321d47;
/* rgb */ color: rgb(50, 29, 71);
/* oklch */ color: oklch(28.0% 0.077 305.0);
Tailwind
colors: {
  custom: {
    50: '#6b5a7a',
    500: '#321d47',
    950: '#000000',
  },
}
SCSS
$custom: #321d47;
$custom-light: #6b5a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#321d47",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 71
  },
  "hsl": {
    "h": 270,
    "s": 42,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28038,
    "c": 0.07737,
    "h": 305
  },
  "luminance": 0.02012
}

Semantic roles & 50–950 ramp

primary
#321D47
secondary
#607C44
accent
#D25694
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #321D47

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

Preview Lab → · Contrast checker → · Palette generator →

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