#321F9D#321F9D

#321F9D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.188 H 278.4°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#321F9D
RGBrgb(50, 31, 157)
HSLhsl(249, 67%, 37%)
HSVhsv(249, 80%, 62%)
CMYKcmyk(68.2%, 80.3%, 0%, 38.4%)
CIE-LABlab(23.97, 45.81, -64.42)
CIE-LCHlch(23.97, 79.05, 305.42°)
OKLaboklab(36.5% 0.0275 -0.1861)
OKLCHoklch(36.5% 0.188 278.4)
XYZxyz(7.8892, 4.0917, 32.2658)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F9D #8A9D1F
analogous
#1F4B9D #321F9D #711F9D
triadic
#321F9D #9D321F #1F9D32
tetradic
#321F9D #9D1F4B #8A9D1F #1F9D71
square
#321F9D #9D1F4B #8A9D1F #1F9D71
split-complementary
#321F9D #9D711F #4B9D1F
monochromatic
#110B37 #22156A #321F9D #4229D0 #6C58DE

Accessibility & contrast

On white

11.55
#321F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#321F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F9D
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F9D#FFFFFF#000000##FFFFFF
##321F9D1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00349B
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #321f9d;
/* rgb */ color: rgb(50, 31, 157);
/* oklch */ color: oklch(36.5% 0.188 278.4);
Tailwind
colors: {
  custom: {
    50: '#7a5fbb',
    500: '#321f9d',
    950: '#000000',
  },
}
SCSS
$custom: #321f9d;
$custom-light: #7a5fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#321f9d",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 249.048,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36498,
    "c": 0.1881,
    "h": 278.4
  },
  "luminance": 0.04092
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #321F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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