#321F96#321F96

#321F96 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.180 H 279.5°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#321F96
RGBrgb(50, 31, 150)
HSLhsl(250, 66%, 35%)
HSVhsv(250, 79%, 59%)
CMYKcmyk(66.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(23.20, 43.65, -61.40)
CIE-LCHlch(23.20, 75.33, 305.41°)
OKLaboklab(35.73% 0.0295 -0.1773)
OKLCHoklch(35.73% 0.18 279.5)
XYZxyz(7.3086, 3.8595, 29.2081)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F96 #83961F
analogous
#1F4796 #321F96 #6D1F96
triadic
#321F96 #96321F #1F9632
tetradic
#321F96 #961F47 #83961F #1F966D
square
#321F96 #961F47 #83961F #1F966D
split-complementary
#321F96 #966D1F #47961F
monochromatic
#100A31 #211563 #321F96 #4329C9 #6954DC

Accessibility & contrast

On white

11.85
#321F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#321F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F96
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F96#FFFFFF#000000##FFFFFF
##321F961.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #321f96;
/* rgb */ color: rgb(50, 31, 150);
/* oklch */ color: oklch(35.7% 0.180 279.5);
Tailwind
colors: {
  custom: {
    50: '#795eb6',
    500: '#321f96',
    950: '#000000',
  },
}
SCSS
$custom: #321f96;
$custom-light: #795eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#321f96",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 249.58,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35733,
    "c": 0.17972,
    "h": 279.5
  },
  "luminance": 0.0386
}

Semantic roles & 50–950 ramp

primary
#321F96
secondary
#AEBF52
accent
#E93FCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #321F96

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

Preview Lab → · Contrast checker → · Palette generator →

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