#321F98#321F98

#321F98 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.182 H 279.1°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#321F98
RGBrgb(50, 31, 152)
HSLhsl(249, 66%, 36%)
HSVhsv(249, 80%, 60%)
CMYKcmyk(67.1%, 79.6%, 0%, 40.4%)
CIE-LABlab(23.42, 44.27, -62.27)
CIE-LCHlch(23.42, 76.40, 305.41°)
OKLaboklab(35.95% 0.0289 -0.1798)
OKLCHoklch(35.95% 0.182 279.1)
XYZxyz(7.4711, 3.9245, 30.0635)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F98 #85981F
analogous
#1F4998 #321F98 #6E1F98
triadic
#321F98 #98321F #1F9832
tetradic
#321F98 #981F49 #85981F #1F986E
square
#321F98 #981F49 #85981F #1F986E
split-complementary
#321F98 #986E1F #49981F
monochromatic
#110A32 #211565 #321F98 #4329CB #6A55DC

Accessibility & contrast

On white

11.76
#321F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#321F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F98
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F98#FFFFFF#000000##FFFFFF
##321F981.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #321f98;
/* rgb */ color: rgb(50, 31, 152);
/* oklch */ color: oklch(35.9% 0.182 279.1);
Tailwind
colors: {
  custom: {
    50: '#795eb8',
    500: '#321f98',
    950: '#000000',
  },
}
SCSS
$custom: #321f98;
$custom-light: #795eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#321f98",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 249.421,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3595,
    "c": 0.18212,
    "h": 279.1
  },
  "luminance": 0.03925
}

Semantic roles & 50–950 ramp

primary
#321F98
secondary
#AFC053
accent
#E93FCE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #321F98

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

Preview Lab → · Contrast checker → · Palette generator →

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