#321FA7#321FA7

#321FA7 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.6% C 0.200 H 277.1°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#321FA7
RGBrgb(50, 31, 167)
HSLhsl(248, 69%, 39%)
HSVhsv(248, 81%, 65%)
CMYKcmyk(70.1%, 81.4%, 0%, 34.5%)
CIE-LABlab(25.10, 48.86, -68.64)
CIE-LCHlch(25.10, 84.25, 305.45°)
OKLaboklab(37.61% 0.0246 -0.1983)
OKLCHoklch(37.61% 0.2 277.1)
XYZxyz(8.7782, 4.4473, 36.9475)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321FA7 #94A71F
analogous
#1F50A7 #321FA7 #761FA7
triadic
#321FA7 #A7321F #1FA732
tetradic
#321FA7 #A71F50 #94A71F #1FA776
square
#321FA7 #A71F50 #94A71F #1FA776
split-complementary
#321FA7 #A7761F #50A71F
monochromatic
#130C40 #231573 #321FA7 #442BD8 #715FE1

Accessibility & contrast

On white

11.11
#321FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#321FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321FA7
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321FA7#FFFFFF#000000##FFFFFF
##321FA71.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AB
Deuteranopia (green-blind)
#0036A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #321fa7;
/* rgb */ color: rgb(50, 31, 167);
/* oklch */ color: oklch(37.6% 0.200 277.1);
Tailwind
colors: {
  custom: {
    50: '#7c5fc3',
    500: '#321fa7',
    950: '#000000',
  },
}
SCSS
$custom: #321fa7;
$custom-light: #7c5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#321fa7",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 248.382,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3761,
    "c": 0.19988,
    "h": 277.1
  },
  "luminance": 0.04448
}

Semantic roles & 50–950 ramp

primary
#321FA7
secondary
#B7C65C
accent
#EC3CD3
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #321FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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