#321F9A#321F9A

#321F9A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.185 H 278.8°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#321F9A
RGBrgb(50, 31, 154)
HSLhsl(249, 66%, 36%)
HSVhsv(249, 80%, 60%)
CMYKcmyk(67.5%, 79.9%, 0%, 39.6%)
CIE-LABlab(23.64, 44.89, -63.13)
CIE-LCHlch(23.64, 77.46, 305.41°)
OKLaboklab(36.17% 0.0284 -0.1823)
OKLCHoklch(36.17% 0.185 278.8)
XYZxyz(7.6362, 3.9905, 30.9334)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F9A #879A1F
analogous
#1F4A9A #321F9A #701F9A
triadic
#321F9A #9A321F #1F9A32
tetradic
#321F9A #9A1F4A #879A1F #1F9A70
square
#321F9A #9A1F4A #879A1F #1F9A70
split-complementary
#321F9A #9A701F #4A9A1F
monochromatic
#110A34 #211567 #321F9A #4329CD #6B56DD

Accessibility & contrast

On white

11.68
#321F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#321F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F9A
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F9A#FFFFFF#000000##FFFFFF
##321F9A1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #321f9a;
/* rgb */ color: rgb(50, 31, 154);
/* oklch */ color: oklch(36.2% 0.185 278.8);
Tailwind
colors: {
  custom: {
    50: '#795eb9',
    500: '#321f9a',
    950: '#000000',
  },
}
SCSS
$custom: #321f9a;
$custom-light: #795eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#321f9a",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 249.268,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36169,
    "c": 0.18453,
    "h": 278.8
  },
  "luminance": 0.03991
}

Semantic roles & 50–950 ramp

primary
#321F9A
secondary
#B0C154
accent
#E93ECF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #321F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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