#321F95#321F95

#321F95 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.179 H 279.6°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#321F95
RGBrgb(50, 31, 149)
HSLhsl(250, 66%, 35%)
HSVhsv(250, 79%, 58%)
CMYKcmyk(66.4%, 79.2%, 0%, 41.6%)
CIE-LABlab(23.09, 43.34, -60.96)
CIE-LCHlch(23.09, 74.80, 305.41°)
OKLaboklab(35.62% 0.0298 -0.176)
OKLCHoklch(35.62% 0.179 279.6)
XYZxyz(7.2285, 3.8274, 28.7858)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F95 #82951F
analogous
#1F4795 #321F95 #6D1F95
triadic
#321F95 #95321F #1F9532
tetradic
#321F95 #951F47 #82951F #1F956D
square
#321F95 #951F47 #82951F #1F956D
split-complementary
#321F95 #956D1F #47951F
monochromatic
#100A30 #211462 #321F95 #432AC8 #6953DB

Accessibility & contrast

On white

11.89
#321F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#321F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F95
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F95#FFFFFF#000000##FFFFFF
##321F951.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #321f95;
/* rgb */ color: rgb(50, 31, 149);
/* oklch */ color: oklch(35.6% 0.179 279.6);
Tailwind
colors: {
  custom: {
    50: '#785eb5',
    500: '#321f95',
    950: '#000000',
  },
}
SCSS
$custom: #321f95;
$custom-light: #785eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#321f95",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 249.661,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35624,
    "c": 0.17851,
    "h": 279.6
  },
  "luminance": 0.03828
}

Semantic roles & 50–950 ramp

primary
#321F95
secondary
#ADBF51
accent
#E93FCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #321F95

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

Preview Lab → · Contrast checker → · Palette generator →

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