#321A57#321A57

#321A57 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.105 H 297.5°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#321A57
RGBrgb(50, 26, 87)
HSLhsl(264, 54%, 22%)
HSVhsv(264, 70%, 34%)
CMYKcmyk(42.5%, 70.1%, 0%, 65.9%)
CIE-LABlab(16.03, 26.77, -32.67)
CIE-LCHlch(16.03, 42.24, 309.32°)
OKLaboklab(28.77% 0.0484 -0.0931)
OKLCHoklch(28.77% 0.105 297.5)
XYZxyz(3.4046, 2.1050, 9.2419)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A57 #3F571A
analogous
#1A2057 #321A57 #511A57
triadic
#321A57 #57321A #1A5732
tetradic
#321A57 #571A20 #3F571A #1A5751
square
#321A57 #571A20 #3F571A #1A5751
split-complementary
#321A57 #57511A #20571A
monochromatic
#0E0718 #170C28 #321A57 #4D2886 #6836B5

Accessibility & contrast

On white

14.78
#321A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#321A57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A57
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A57#FFFFFF#000000##FFFFFF
##321A571.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002859
Deuteranopia (green-blind)
#002756
Tritanopia (blue-blind)
#292836
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321a57;
/* rgb */ color: rgb(50, 26, 87);
/* oklch */ color: oklch(28.8% 0.105 297.5);
Tailwind
colors: {
  custom: {
    50: '#6d5887',
    500: '#321a57',
    950: '#000000',
  },
}
SCSS
$custom: #321a57;
$custom-light: #6d5887;
$custom-dark: #000000;
JSON
{
  "hex": "#321a57",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 87
  },
  "hsl": {
    "h": 263.607,
    "s": 53.982,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28772,
    "c": 0.10495,
    "h": 297.5
  },
  "luminance": 0.02105
}

Semantic roles & 50–950 ramp

primary
#321A57
secondary
#6F8D40
accent
#DD4AA4
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321A57

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

Preview Lab → · Contrast checker → · Palette generator →

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