#321AB4#321AB4

#321AB4 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.6% C 0.218 H 275.9°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#321AB4
RGBrgb(50, 26, 180)
HSLhsl(249, 75%, 40%)
HSVhsv(249, 86%, 71%)
CMYKcmyk(72.2%, 85.6%, 0%, 29.4%)
CIE-LABlab(25.90, 54.83, -75.13)
CIE-LCHlch(25.90, 93.01, 306.12°)
OKLaboklab(38.6% 0.0225 -0.2171)
OKLCHoklch(38.6% 0.218 275.9)
XYZxyz(9.9203, 4.7112, 43.5577)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321AB4 #9CB41A
analogous
#1A4FB4 #321AB4 #7F1AB4
triadic
#321AB4 #B4321A #1AB432
tetradic
#321AB4 #B41A4F #9CB41A #1AB47F
square
#321AB4 #B41A4F #9CB41A #1AB47F
split-complementary
#321AB4 #B47F1A #4FB41A
monochromatic
#140B49 #23127F #321AB4 #472BE0 #7560E8

Accessibility & contrast

On white

10.81
#321AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#321AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321AB4
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321AB4#FFFFFF#000000##FFFFFF
##321AB41.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B8
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#004D6B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #321ab4;
/* rgb */ color: rgb(50, 26, 180);
/* oklch */ color: oklch(38.6% 0.218 275.9);
Tailwind
colors: {
  custom: {
    50: '#805ecc',
    500: '#321ab4',
    950: '#000000',
  },
}
SCSS
$custom: #321ab4;
$custom-light: #805ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#321ab4",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 249.351,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38601,
    "c": 0.21826,
    "h": 275.9
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

primary
#321AB4
secondary
#BBCC5D
accent
#F136D4
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #321AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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