#321747#321747

#321747 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.088 H 307.4°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#321747
RGBrgb(50, 23, 71)
HSLhsl(274, 51%, 18%)
HSVhsv(274, 68%, 28%)
CMYKcmyk(29.6%, 67.6%, 0%, 72.2%)
CIE-LABlab(14.09, 23.95, -24.86)
CIE-LCHlch(14.09, 34.52, 313.94°)
OKLaboklab(26.97% 0.0537 -0.0701)
OKLCHoklch(26.97% 0.088 307.4)
XYZxyz(2.7589, 1.7459, 6.1517)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321747 #2C4717
analogous
#1A1747 #321747 #471744
triadic
#321747 #473217 #174732
tetradic
#321747 #471A17 #2C4717 #174447
square
#321747 #471A17 #2C4717 #174447
split-complementary
#321747 #444717 #17471A
monochromatic
#100717 #110819 #321747 #532675 #7335A3

Accessibility & contrast

On white

15.56
#321747 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#321747 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321747
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321747#FFFFFF#000000##FFFFFF
##3217471.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032349
Deuteranopia (green-blind)
#0F2446
Tritanopia (blue-blind)
#2F202C
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #321747;
/* rgb */ color: rgb(50, 23, 71);
/* oklch */ color: oklch(27.0% 0.088 307.4);
Tailwind
colors: {
  custom: {
    50: '#6c557a',
    500: '#321747',
    950: '#000000',
  },
}
SCSS
$custom: #321747;
$custom-light: #6c557a;
$custom-dark: #000000;
JSON
{
  "hex": "#321747",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 71
  },
  "hsl": {
    "h": 273.75,
    "s": 51.064,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26969,
    "c": 0.08833,
    "h": 307.4
  },
  "luminance": 0.01746
}

Semantic roles & 50–950 ramp

primary
#321747
secondary
#597E3C
accent
#DB4D8B
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #321747

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

Preview Lab → · Contrast checker → · Palette generator →

#321747 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva