#321A45#321A45

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

Color values

HEX#321A45
RGBrgb(50, 26, 69)
HSLhsl(273, 45%, 19%)
HSVhsv(273, 62%, 27%)
CMYKcmyk(27.5%, 62.3%, 0%, 72.9%)
CIE-LABlab(14.66, 21.50, -22.56)
CIE-LCHlch(14.66, 31.17, 313.62°)
OKLaboklab(27.34% 0.0491 -0.0634)
OKLCHoklch(27.34% 0.08 307.7)
XYZxyz(2.7587, 1.8466, 5.8402)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A45 #2D451A
analogous
#1C1A45 #321A45 #451A42
triadic
#321A45 #45321A #1A4532
tetradic
#321A45 #451C1A #2D451A #1A4245
square
#321A45 #451C1A #2D451A #1A4245
split-complementary
#321A45 #42451A #1A451C
monochromatic
#100816 #120919 #321A45 #522B71 #723B9E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##321A45#FFFFFF#000000##FFFFFF
##321A451.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)
#0C2446
Deuteranopia (green-blind)
#142544
Tritanopia (blue-blind)
#2F222C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321a45;
/* rgb */ color: rgb(50, 26, 69);
/* oklch */ color: oklch(27.3% 0.080 307.7);
Tailwind
colors: {
  custom: {
    50: '#6b5779',
    500: '#321a45',
    950: '#000000',
  },
}
SCSS
$custom: #321a45;
$custom-light: #6b5779;
$custom-dark: #000000;
JSON
{
  "hex": "#321a45",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 69
  },
  "hsl": {
    "h": 273.488,
    "s": 45.263,
    "l": 18.627
  },
  "oklch": {
    "l": 0.27339,
    "c": 0.08019,
    "h": 307.7
  },
  "luminance": 0.01847
}

Semantic roles & 50–950 ramp

primary
#321A45
secondary
#5A7B40
accent
#D5538C
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #321A45

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

Preview Lab → · Contrast checker → · Palette generator →

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