#321F9B#321F9B

#321F9B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.186 H 278.7°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#321F9B
RGBrgb(50, 31, 155)
HSLhsl(249, 67%, 36%)
HSVhsv(249, 80%, 61%)
CMYKcmyk(67.7%, 80%, 0%, 39.2%)
CIE-LABlab(23.75, 45.20, -63.56)
CIE-LCHlch(23.75, 77.99, 305.41°)
OKLaboklab(36.28% 0.0281 -0.1836)
OKLCHoklch(36.28% 0.186 278.7)
XYZxyz(7.7199, 4.0240, 31.3739)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F9B #889B1F
analogous
#1F4A9B #321F9B #701F9B
triadic
#321F9B #9B321F #1F9B32
tetradic
#321F9B #9B1F4A #889B1F #1F9B70
square
#321F9B #9B1F4A #889B1F #1F9B70
split-complementary
#321F9B #9B701F #4A9B1F
monochromatic
#110B35 #221568 #321F9B #4229CE #6C57DD

Accessibility & contrast

On white

11.63
#321F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#321F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F9B
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F9B#FFFFFF#000000##FFFFFF
##321F9B1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #321f9b;
/* rgb */ color: rgb(50, 31, 155);
/* oklch */ color: oklch(36.3% 0.186 278.7);
Tailwind
colors: {
  custom: {
    50: '#7a5eba',
    500: '#321f9b',
    950: '#000000',
  },
}
SCSS
$custom: #321f9b;
$custom-light: #7a5eba;
$custom-dark: #000000;
JSON
{
  "hex": "#321f9b",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 249.194,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36278,
    "c": 0.18573,
    "h": 278.7
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#321F9B
secondary
#B0C155
accent
#EA3ECF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #321F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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