#321F9F#321F9F

#321F9F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.190 H 278.1°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#321F9F
RGBrgb(50, 31, 159)
HSLhsl(249, 67%, 37%)
HSVhsv(249, 81%, 62%)
CMYKcmyk(68.6%, 80.5%, 0%, 37.6%)
CIE-LABlab(24.20, 46.43, -65.27)
CIE-LCHlch(24.20, 80.10, 305.42°)
OKLaboklab(36.72% 0.027 -0.1886)
OKLCHoklch(36.72% 0.19 278.1)
XYZxyz(8.0614, 4.1606, 33.1724)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F9F #8C9F1F
analogous
#1F4C9F #321F9F #721F9F
triadic
#321F9F #9F321F #1F9F32
tetradic
#321F9F #9F1F4C #8C9F1F #1F9F72
square
#321F9F #9F1F4C #8C9F1F #1F9F72
split-complementary
#321F9F #9F721F #4C9F1F
monochromatic
#120B39 #22156C #321F9F #4229D2 #6D5ADF

Accessibility & contrast

On white

11.46
#321F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321F9F
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F9F#FFFFFF#000000##FFFFFF
##321F9F1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #321f9f;
/* rgb */ color: rgb(50, 31, 159);
/* oklch */ color: oklch(36.7% 0.190 278.1);
Tailwind
colors: {
  custom: {
    50: '#7b5fbd',
    500: '#321f9f',
    950: '#000000',
  },
}
SCSS
$custom: #321f9f;
$custom-light: #7b5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#321f9f",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 248.906,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36719,
    "c": 0.19048,
    "h": 278.1
  },
  "luminance": 0.04161
}

Semantic roles & 50–950 ramp

primary
#321F9F
secondary
#B3C357
accent
#EA3ED1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #321F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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