#321C58#321C58

#321C58 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.103 H 296.3°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#321C58
RGBrgb(50, 28, 88)
HSLhsl(262, 52%, 23%)
HSVhsv(262, 68%, 35%)
CMYKcmyk(43.2%, 68.2%, 0%, 65.5%)
CIE-LABlab(16.57, 25.83, -32.47)
CIE-LCHlch(16.57, 41.49, 308.50°)
OKLaboklab(29.19% 0.0457 -0.0925)
OKLCHoklch(29.19% 0.103 296.3)
XYZxyz(3.4916, 2.2131, 9.4738)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C58 #42581C
analogous
#1C2458 #321C58 #501C58
triadic
#321C58 #58321C #1C5832
tetradic
#321C58 #581C24 #42581C #1C5850
square
#321C58 #581C24 #42581C #1C5850
split-complementary
#321C58 #58501C #24581C
monochromatic
#0D0717 #180D2A #321C58 #4C2B86 #673AB5

Accessibility & contrast

On white

14.56
#321C58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#321C58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C58
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C58#FFFFFF#000000##FFFFFF
##321C581.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#002857
Tritanopia (blue-blind)
#292A37
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321c58;
/* rgb */ color: rgb(50, 28, 88);
/* oklch */ color: oklch(29.2% 0.103 296.3);
Tailwind
colors: {
  custom: {
    50: '#6d5988',
    500: '#321c58',
    950: '#000000',
  },
}
SCSS
$custom: #321c58;
$custom-light: #6d5988;
$custom-dark: #000000;
JSON
{
  "hex": "#321c58",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 88
  },
  "hsl": {
    "h": 262,
    "s": 51.724,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29188,
    "c": 0.10321,
    "h": 296.3
  },
  "luminance": 0.02213
}

Semantic roles & 50–950 ramp

primary
#321C58
secondary
#728E42
accent
#DB4DA7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321C58

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

Preview Lab → · Contrast checker → · Palette generator →

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