#321F9E#321F9E

#321F9E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.6% C 0.189 H 278.3°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#321F9E
RGBrgb(50, 31, 158)
HSLhsl(249, 67%, 37%)
HSVhsv(249, 80%, 62%)
CMYKcmyk(68.4%, 80.4%, 0%, 38%)
CIE-LABlab(24.08, 46.12, -64.85)
CIE-LCHlch(24.08, 79.58, 305.42°)
OKLaboklab(36.61% 0.0272 -0.1873)
OKLCHoklch(36.61% 0.189 278.3)
XYZxyz(7.9749, 4.1260, 32.7173)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F9E #8B9E1F
analogous
#1F4C9E #321F9E #711F9E
triadic
#321F9E #9E321F #1F9E32
tetradic
#321F9E #9E1F4C #8B9E1F #1F9E71
square
#321F9E #9E1F4C #8B9E1F #1F9E71
split-complementary
#321F9E #9E711F #4C9E1F
monochromatic
#120B38 #22156B #321F9E #4229D1 #6D59DE

Accessibility & contrast

On white

11.50
#321F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#321F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F9E
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F9E#FFFFFF#000000##FFFFFF
##321F9E1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #321f9e;
/* rgb */ color: rgb(50, 31, 158);
/* oklch */ color: oklch(36.6% 0.189 278.3);
Tailwind
colors: {
  custom: {
    50: '#7a5fbc',
    500: '#321f9e',
    950: '#000000',
  },
}
SCSS
$custom: #321f9e;
$custom-light: #7a5fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#321f9e",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 248.976,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36608,
    "c": 0.18929,
    "h": 278.3
  },
  "luminance": 0.04127
}

Semantic roles & 50–950 ramp

primary
#321F9E
secondary
#B2C256
accent
#EA3ED0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #321F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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