#321D9C#321D9C

#321D9C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.189 H 278.8°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#321D9C
RGBrgb(50, 29, 156)
HSLhsl(250, 69%, 36%)
HSVhsv(250, 81%, 61%)
CMYKcmyk(67.9%, 81.4%, 0%, 38.8%)
CIE-LABlab(23.53, 46.47, -64.55)
CIE-LCHlch(23.53, 79.54, 305.75°)
OKLaboklab(36.16% 0.0288 -0.1864)
OKLCHoklch(36.16% 0.189 278.8)
XYZxyz(7.7536, 3.9565, 31.8011)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D9C #879C1D
analogous
#1D489C #321D9C #721D9C
triadic
#321D9C #9C321D #1D9C32
tetradic
#321D9C #9C1D48 #879C1D #1D9C72
square
#321D9C #9C1D48 #879C1D #1D9C72
split-complementary
#321D9C #9C721D #489C1D
monochromatic
#110A35 #211368 #321D9C #4327D0 #6B54DF

Accessibility & contrast

On white

11.72
#321D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#321D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D9C
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D9C#FFFFFF#000000##FFFFFF
##321D9C1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #321d9c;
/* rgb */ color: rgb(50, 29, 156);
/* oklch */ color: oklch(36.2% 0.189 278.8);
Tailwind
colors: {
  custom: {
    50: '#7a5dbb',
    500: '#321d9c',
    950: '#000000',
  },
}
SCSS
$custom: #321d9c;
$custom-light: #7a5dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#321d9c",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 249.921,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36156,
    "c": 0.18863,
    "h": 278.8
  },
  "luminance": 0.03957
}

Semantic roles & 50–950 ramp

primary
#321D9C
secondary
#B0C252
accent
#EB3CCF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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