#321A58#321A58

#321A58 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.106 H 297.0°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#321A58
RGBrgb(50, 26, 88)
HSLhsl(263, 54%, 22%)
HSVhsv(263, 70%, 35%)
CMYKcmyk(43.2%, 70.5%, 0%, 65.5%)
CIE-LABlab(16.11, 27.07, -33.21)
CIE-LCHlch(16.11, 42.85, 309.18°)
OKLaboklab(28.86% 0.0483 -0.0947)
OKLCHoklch(28.86% 0.106 297)
XYZxyz(3.4458, 2.1214, 9.4586)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A58 #40581A
analogous
#1A2158 #321A58 #511A58
triadic
#321A58 #58321A #1A5832
tetradic
#321A58 #581A21 #40581A #1A5851
square
#321A58 #581A21 #40581A #1A5851
split-complementary
#321A58 #58511A #21581A
monochromatic
#0D0718 #170C29 #321A58 #4D2887 #6836B6

Accessibility & contrast

On white

14.75
#321A58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321A58
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A58#FFFFFF#000000##FFFFFF
##321A581.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#002757
Tritanopia (blue-blind)
#292836
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321a58;
/* rgb */ color: rgb(50, 26, 88);
/* oklch */ color: oklch(28.9% 0.106 297.0);
Tailwind
colors: {
  custom: {
    50: '#6e5888',
    500: '#321a58',
    950: '#000000',
  },
}
SCSS
$custom: #321a58;
$custom-light: #6e5888;
$custom-dark: #000000;
JSON
{
  "hex": "#321a58",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 88
  },
  "hsl": {
    "h": 263.226,
    "s": 54.386,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28858,
    "c": 0.1063,
    "h": 297
  },
  "luminance": 0.02121
}

Semantic roles & 50–950 ramp

primary
#321A58
secondary
#708E40
accent
#DE4AA5
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321A58

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

Preview Lab → · Contrast checker → · Palette generator →

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