#322797#322797

#322797 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.173 H 278.1°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#322797
RGBrgb(50, 39, 151)
HSLhsl(246, 59%, 37%)
HSVhsv(246, 74%, 59%)
CMYKcmyk(66.9%, 74.2%, 0%, 40.8%)
CIE-LABlab(24.84, 39.62, -59.32)
CIE-LCHlch(24.84, 71.33, 303.74°)
OKLaboklab(36.92% 0.0244 -0.1713)
OKLCHoklch(36.92% 0.173 278.1)
XYZxyz(7.6250, 4.3629, 29.7124)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322797 #8C9727
analogous
#275497 #322797 #6A2797
triadic
#322797 #973227 #279732
tetradic
#322797 #972754 #8C9727 #27976A
square
#322797 #972754 #8C9727 #27976A
split-complementary
#322797 #976A27 #549727
monochromatic
#120E36 #221A66 #322797 #4234C8 #6D62D6

Accessibility & contrast

On white

11.21
#322797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#322797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322797
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322797#FFFFFF#000000##FFFFFF
##3227971.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #322797;
/* rgb */ color: rgb(50, 39, 151);
/* oklch */ color: oklch(36.9% 0.173 278.1);
Tailwind
colors: {
  custom: {
    50: '#7863b7',
    500: '#322797',
    950: '#000000',
  },
}
SCSS
$custom: #322797;
$custom-light: #7863b7;
$custom-dark: #000000;
JSON
{
  "hex": "#322797",
  "rgb": {
    "r": 50,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 245.893,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36916,
    "c": 0.17301,
    "h": 278.1
  },
  "luminance": 0.04364
}

Semantic roles & 50–950 ramp

primary
#322797
secondary
#B3BC5E
accent
#E246D3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #322797

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

Preview Lab → · Contrast checker → · Palette generator →

#322797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva