#321CD2#321CD2

#321CD2 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 42.3% C 0.250 H 273.0°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#321CD2
RGBrgb(50, 28, 210)
HSLhsl(247, 76%, 47%)
HSVhsv(247, 87%, 82%)
CMYKcmyk(76.2%, 86.7%, 0%, 17.6%)
CIE-LABlab(29.81, 62.50, -86.29)
CIE-LCHlch(29.81, 106.54, 305.92°)
OKLaboklab(42.32% 0.013 -0.2494)
OKLCHoklch(42.32% 0.25 273)
XYZxyz(13.3596, 6.1603, 61.4452)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321CD2 #BCD21C
analogous
#1C61D2 #321CD2 #8D1CD2
triadic
#321CD2 #D2321C #1CD232
tetradic
#321CD2 #D21C61 #BCD21C #1CD28D
square
#321CD2 #D21C61 #BCD21C #1CD28D
split-complementary
#321CD2 #D28D1C #61D21C
monochromatic
#180E66 #25159C #321CD2 #5845E6 #897BED

Accessibility & contrast

On white

9.41
#321CD2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#321CD2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321CD2
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321CD2#FFFFFF#000000##FFFFFF
##321CD21.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ED7
Deuteranopia (green-blind)
#003DCF
Tritanopia (blue-blind)
#005B7D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #321cd2;
/* rgb */ color: rgb(50, 28, 210);
/* oklch */ color: oklch(42.3% 0.250 273.0);
Tailwind
colors: {
  custom: {
    50: '#8661e2',
    500: '#321cd2',
    950: '#000000',
  },
}
SCSS
$custom: #321cd2;
$custom-light: #8661e2;
$custom-dark: #000000;
JSON
{
  "hex": "#321cd2",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 210
  },
  "hsl": {
    "h": 247.253,
    "s": 76.471,
    "l": 46.667
  },
  "oklch": {
    "l": 0.42319,
    "c": 0.24977,
    "h": 273
  },
  "luminance": 0.06162
}

Semantic roles & 50–950 ramp

primary
#321CD2
secondary
#C9D575
accent
#F335DC
background
#F9F6FE
surface
#F2EBFC
border
#CCC6D5
text
#0D0516
muted
#7E7A84

Preview Lab

Preview with #321CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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