#321CB4#321CB4

#321CB4 is a dark, highly saturated blue. Relative luminance 0.048; OKLCH L 38.8% C 0.217 H 275.8°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#321CB4
RGBrgb(50, 28, 180)
HSLhsl(249, 73%, 41%)
HSVhsv(249, 84%, 71%)
CMYKcmyk(72.2%, 84.4%, 0%, 29.4%)
CIE-LABlab(26.17, 54.03, -74.68)
CIE-LCHlch(26.17, 92.18, 305.88°)
OKLaboklab(38.79% 0.0219 -0.2158)
OKLCHoklch(38.79% 0.217 275.8)
XYZxyz(9.9662, 4.8029, 43.5730)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321CB4 #9EB41C
analogous
#1C52B4 #321CB4 #7E1CB4
triadic
#321CB4 #B4321C #1CB432
tetradic
#321CB4 #B41C52 #9EB41C #1CB47E
square
#321CB4 #B41C52 #9EB41C #1CB47E
split-complementary
#321CB4 #B47E1C #52B41C
monochromatic
#150C4A #23147F #321CB4 #482FDF #7764E7

Accessibility & contrast

On white

10.71
#321CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#321CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321CB4
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321CB4#FFFFFF#000000##FFFFFF
##321CB41.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B8
Deuteranopia (green-blind)
#0037B1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #321cb4;
/* rgb */ color: rgb(50, 28, 180);
/* oklch */ color: oklch(38.8% 0.217 275.8);
Tailwind
colors: {
  custom: {
    50: '#7f5fcc',
    500: '#321cb4',
    950: '#000000',
  },
}
SCSS
$custom: #321cb4;
$custom-light: #7f5fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#321cb4",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 248.684,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38786,
    "c": 0.21695,
    "h": 275.8
  },
  "luminance": 0.04804
}

Semantic roles & 50–950 ramp

primary
#321CB4
secondary
#BCCC60
accent
#F038D5
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #321CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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