#321D63#321D63

#321D63 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.3% C 0.117 H 291.7°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#321D63
RGBrgb(50, 29, 99)
HSLhsl(258, 55%, 25%)
HSVhsv(258, 71%, 39%)
CMYKcmyk(49.5%, 70.7%, 0%, 61.2%)
CIE-LABlab(17.73, 28.64, -37.91)
CIE-LCHlch(17.73, 47.52, 307.07°)
OKLaboklab(30.32% 0.0432 -0.1085)
OKLCHoklch(30.32% 0.117 291.7)
XYZxyz(4.0063, 2.4576, 12.0652)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D63 #4E631D
analogous
#1D2B63 #321D63 #551D63
triadic
#321D63 #63321D #1D6332
tetradic
#321D63 #631D2B #4E631D #1D6355
square
#321D63 #631D2B #4E631D #1D6355
split-complementary
#321D63 #63551D #2B631D
monochromatic
#0C0718 #1A0F34 #321D63 #4A2B92 #6239C2

Accessibility & contrast

On white

14.08
#321D63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#321D63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D63
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D63#FFFFFF#000000##FFFFFF
##321D631.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C65
Deuteranopia (green-blind)
#002A62
Tritanopia (blue-blind)
#232E3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321d63;
/* rgb */ color: rgb(50, 29, 99);
/* oklch */ color: oklch(30.3% 0.117 291.7);
Tailwind
colors: {
  custom: {
    50: '#6f5a90',
    500: '#321d63',
    950: '#000000',
  },
}
SCSS
$custom: #321d63;
$custom-light: #6f5a90;
$custom-dark: #000000;
JSON
{
  "hex": "#321d63",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 99
  },
  "hsl": {
    "h": 258,
    "s": 54.688,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30316,
    "c": 0.11681,
    "h": 291.7
  },
  "luminance": 0.02458
}

Semantic roles & 50–950 ramp

primary
#321D63
secondary
#7F9844
accent
#DE4AB2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #321D63

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

Preview Lab → · Contrast checker → · Palette generator →

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