#321CA4#321CA4

#321CA4 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.9% C 0.199 H 277.7°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#321CA4
RGBrgb(50, 28, 164)
HSLhsl(250, 71%, 38%)
HSVhsv(250, 83%, 64%)
CMYKcmyk(69.5%, 82.9%, 0%, 35.7%)
CIE-LABlab(24.28, 49.34, -68.17)
CIE-LCHlch(24.28, 84.15, 305.89°)
OKLaboklab(36.95% 0.0268 -0.1969)
OKLCHoklch(36.95% 0.199 277.7)
XYZxyz(8.4293, 4.1882, 35.4789)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321CA4 #8EA41C
analogous
#1C4AA4 #321CA4 #761CA4
triadic
#321CA4 #A4321C #1CA432
tetradic
#321CA4 #A41C4A #8EA41C #1CA476
square
#321CA4 #A41C4A #8EA41C #1CA476
split-complementary
#321CA4 #A4761C #4AA41C
monochromatic
#120A3B #221370 #321CA4 #4225D8 #6E58E2

Accessibility & contrast

On white

11.43
#321CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#321CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321CA4
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321CA4#FFFFFF#000000##FFFFFF
##321CA41.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA8
Deuteranopia (green-blind)
#0034A2
Tritanopia (blue-blind)
#004762
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #321ca4;
/* rgb */ color: rgb(50, 28, 164);
/* oklch */ color: oklch(36.9% 0.199 277.7);
Tailwind
colors: {
  custom: {
    50: '#7c5ec0',
    500: '#321ca4',
    950: '#000000',
  },
}
SCSS
$custom: #321ca4;
$custom-light: #7c5ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#321ca4",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 164
  },
  "hsl": {
    "h": 249.706,
    "s": 70.833,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36947,
    "c": 0.19876,
    "h": 277.7
  },
  "luminance": 0.04189
}

Semantic roles & 50–950 ramp

primary
#321CA4
secondary
#B4C656
accent
#EE3AD1
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #321CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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