#322798#322798

#322798 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.174 H 278.0°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#322798
RGBrgb(50, 39, 152)
HSLhsl(246, 59%, 37%)
HSVhsv(246, 74%, 60%)
CMYKcmyk(67.1%, 74.3%, 0%, 40.4%)
CIE-LABlab(24.94, 39.95, -59.76)
CIE-LCHlch(24.94, 71.89, 303.76°)
OKLaboklab(37.02% 0.0242 -0.1726)
OKLCHoklch(37.02% 0.174 278)
XYZxyz(7.7066, 4.3955, 30.1420)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322798 #8D9827
analogous
#275498 #322798 #6B2798
triadic
#322798 #983227 #279832
tetradic
#322798 #982754 #8D9827 #27986B
square
#322798 #982754 #8D9827 #27986B
split-complementary
#322798 #986B27 #549827
monochromatic
#120E37 #221B67 #322798 #4233C9 #6E63D7

Accessibility & contrast

On white

11.17
#322798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#322798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322798
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322798#FFFFFF#000000##FFFFFF
##3227981.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #322798;
/* rgb */ color: rgb(50, 39, 152);
/* oklch */ color: oklch(37.0% 0.174 278.0);
Tailwind
colors: {
  custom: {
    50: '#7863b7',
    500: '#322798',
    950: '#000000',
  },
}
SCSS
$custom: #322798;
$custom-light: #7863b7;
$custom-dark: #000000;
JSON
{
  "hex": "#322798",
  "rgb": {
    "r": 50,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 245.841,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37018,
    "c": 0.17427,
    "h": 278
  },
  "luminance": 0.04396
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #322798

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

Preview Lab → · Contrast checker → · Palette generator →

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