#321F9C#321F9C

#321F9C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.187 H 278.6°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#321F9C
RGBrgb(50, 31, 156)
HSLhsl(249, 67%, 37%)
HSVhsv(249, 80%, 61%)
CMYKcmyk(67.9%, 80.1%, 0%, 38.8%)
CIE-LABlab(23.86, 45.50, -63.99)
CIE-LCHlch(23.86, 78.52, 305.42°)
OKLaboklab(36.39% 0.0278 -0.1848)
OKLCHoklch(36.39% 0.187 278.6)
XYZxyz(7.8042, 4.0577, 31.8180)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F9C #899C1F
analogous
#1F4B9C #321F9C #711F9C
triadic
#321F9C #9C321F #1F9C32
tetradic
#321F9C #9C1F4B #899C1F #1F9C71
square
#321F9C #9C1F4B #899C1F #1F9C71
split-complementary
#321F9C #9C711F #4B9C1F
monochromatic
#110B36 #221569 #321F9C #4229CF #6C58DE

Accessibility & contrast

On white

11.59
#321F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#321F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F9C
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F9C#FFFFFF#000000##FFFFFF
##321F9C1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00349A
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #321f9c;
/* rgb */ color: rgb(50, 31, 156);
/* oklch */ color: oklch(36.4% 0.187 278.6);
Tailwind
colors: {
  custom: {
    50: '#7a5fba',
    500: '#321f9c',
    950: '#000000',
  },
}
SCSS
$custom: #321f9c;
$custom-light: #7a5fba;
$custom-dark: #000000;
JSON
{
  "hex": "#321f9c",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 249.12,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36388,
    "c": 0.18692,
    "h": 278.6
  },
  "luminance": 0.04058
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #321F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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