#321FC2#321FC2

#321FC2 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.7% C 0.231 H 274.2°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#321FC2
RGBrgb(50, 31, 194)
HSLhsl(247, 72%, 44%)
HSVhsv(247, 84%, 76%)
CMYKcmyk(74.2%, 84%, 0%, 23.9%)
CIE-LABlab(28.25, 56.84, -79.52)
CIE-LCHlch(28.25, 97.75, 305.56°)
OKLaboklab(40.7% 0.0169 -0.2299)
OKLCHoklch(40.7% 0.231 274.2)
XYZxyz(11.5398, 5.5519, 51.4919)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321FC2 #AFC21F
analogous
#1F5EC2 #321FC2 #841FC2
triadic
#321FC2 #C2321F #1FC232
tetradic
#321FC2 #C21F5E #AFC21F #1FC284
square
#321FC2 #C21F5E #AFC21F #1FC284
split-complementary
#321FC2 #C2841F #5EC21F
monochromatic
#170E58 #24178D #321FC2 #513EE0 #8173E9

Accessibility & contrast

On white

9.95
#321FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#321FC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321FC2
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321FC2#FFFFFF#000000##FFFFFF
##321FC21.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC6
Deuteranopia (green-blind)
#003BBF
Tritanopia (blue-blind)
#005574
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #321fc2;
/* rgb */ color: rgb(50, 31, 194);
/* oklch */ color: oklch(40.7% 0.231 274.2);
Tailwind
colors: {
  custom: {
    50: '#8261d6',
    500: '#321fc2',
    950: '#000000',
  },
}
SCSS
$custom: #321fc2;
$custom-light: #8261d6;
$custom-dark: #000000;
JSON
{
  "hex": "#321fc2",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 194
  },
  "hsl": {
    "h": 246.994,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40698,
    "c": 0.23053,
    "h": 274.2
  },
  "luminance": 0.05553
}

Semantic roles & 50–950 ramp

primary
#321FC2
secondary
#C4CF6D
accent
#EF39DA
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0515
muted
#7D7A83

Preview Lab

Preview with #321FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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