#321FB4#321FB4

#321FB4 is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 39.1% C 0.215 H 275.6°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#321FB4
RGBrgb(50, 31, 180)
HSLhsl(248, 71%, 41%)
HSVhsv(248, 83%, 71%)
CMYKcmyk(72.2%, 82.8%, 0%, 29.4%)
CIE-LABlab(26.60, 52.75, -73.97)
CIE-LCHlch(26.60, 90.85, 305.49°)
OKLaboklab(39.08% 0.0209 -0.2138)
OKLCHoklch(39.08% 0.215 275.6)
XYZxyz(10.0409, 4.9524, 43.5979)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321FB4 #A1B41F
analogous
#1F57B4 #321FB4 #7D1FB4
triadic
#321FB4 #B4321F #1FB432
tetradic
#321FB4 #B41F57 #A1B41F #1FB47D
square
#321FB4 #B41F57 #A1B41F #1FB47D
split-complementary
#321FB4 #B47D1F #57B41F
monochromatic
#150D4C #231680 #321FB4 #4A34DC #7868E5

Accessibility & contrast

On white

10.55
#321FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#321FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321FB4
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321FB4#FFFFFF#000000##FFFFFF
##321FB41.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B8
Deuteranopia (green-blind)
#0038B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #321fb4;
/* rgb */ color: rgb(50, 31, 180);
/* oklch */ color: oklch(39.1% 0.215 275.6);
Tailwind
colors: {
  custom: {
    50: '#7f60cc',
    500: '#321fb4',
    950: '#000000',
  },
}
SCSS
$custom: #321fb4;
$custom-light: #7f60cc;
$custom-dark: #000000;
JSON
{
  "hex": "#321fb4",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 247.651,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39084,
    "c": 0.21483,
    "h": 275.6
  },
  "luminance": 0.04953
}

Semantic roles & 50–950 ramp

primary
#321FB4
secondary
#BECB64
accent
#ED3AD7
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #321FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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