#321FBB#321FBB

#321FBB is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.9% C 0.223 H 274.9°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#321FBB
RGBrgb(50, 31, 187)
HSLhsl(247, 72%, 43%)
HSVhsv(247, 83%, 73%)
CMYKcmyk(73.3%, 83.4%, 0%, 26.7%)
CIE-LABlab(27.42, 54.81, -76.77)
CIE-LCHlch(27.42, 94.32, 305.52°)
OKLaboklab(39.89% 0.0189 -0.2219)
OKLCHoklch(39.89% 0.223 274.9)
XYZxyz(10.7721, 5.2449, 47.4487)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321FBB #A8BB1F
analogous
#1F5ABB #321FBB #801FBB
triadic
#321FBB #BB321F #1FBB32
tetradic
#321FBB #BB1F5A #A8BB1F #1FBB80
square
#321FBB #BB1F5A #A8BB1F #1FBB80
split-complementary
#321FBB #BB801F #5ABB1F
monochromatic
#160E52 #241687 #321FBB #4D39DE #7C6EE7

Accessibility & contrast

On white

10.25
#321FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#321FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321FBB
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321FBB#FFFFFF#000000##FFFFFF
##321FBB1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047BF
Deuteranopia (green-blind)
#003AB8
Tritanopia (blue-blind)
#005270
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #321fbb;
/* rgb */ color: rgb(50, 31, 187);
/* oklch */ color: oklch(39.9% 0.223 274.9);
Tailwind
colors: {
  custom: {
    50: '#8161d1',
    500: '#321fbb',
    950: '#000000',
  },
}
SCSS
$custom: #321fbb;
$custom-light: #8161d1;
$custom-dark: #000000;
JSON
{
  "hex": "#321fbb",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 187
  },
  "hsl": {
    "h": 247.308,
    "s": 71.56,
    "l": 42.745
  },
  "oklch": {
    "l": 0.39888,
    "c": 0.22272,
    "h": 274.9
  },
  "luminance": 0.05246
}

Semantic roles & 50–950 ramp

primary
#321FBB
secondary
#C1CD69
accent
#EE3AD8
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #321FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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