#321FA1#321FA1

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

Color values

HEX#321FA1
RGBrgb(50, 31, 161)
HSLhsl(249, 68%, 38%)
HSVhsv(249, 81%, 63%)
CMYKcmyk(68.9%, 80.7%, 0%, 36.9%)
CIE-LABlab(24.42, 47.04, -66.12)
CIE-LCHlch(24.42, 81.15, 305.43°)
OKLaboklab(36.94% 0.0264 -0.191)
OKLCHoklch(36.94% 0.193 277.9)
XYZxyz(8.2363, 4.2306, 34.0938)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321FA1 #8EA11F
analogous
#1F4DA1 #321FA1 #731FA1
triadic
#321FA1 #A1321F #1FA132
tetradic
#321FA1 #A11F4D #8EA11F #1FA173
square
#321FA1 #A11F4D #8EA11F #1FA173
split-complementary
#321FA1 #A1731F #4DA11F
monochromatic
#120B3A #22156E #321FA1 #4229D4 #6E5BDF

Accessibility & contrast

On white

11.37
#321FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#321FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321FA1
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321FA1#FFFFFF#000000##FFFFFF
##321FA11.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #321fa1;
/* rgb */ color: rgb(50, 31, 161);
/* oklch */ color: oklch(36.9% 0.193 277.9);
Tailwind
colors: {
  custom: {
    50: '#7b5fbe',
    500: '#321fa1',
    950: '#000000',
  },
}
SCSS
$custom: #321fa1;
$custom-light: #7b5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#321fa1",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 248.769,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36941,
    "c": 0.19284,
    "h": 277.9
  },
  "luminance": 0.04231
}

Semantic roles & 50–950 ramp

primary
#321FA1
secondary
#B4C458
accent
#EB3DD1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #321FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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