#322871#322871

#322871 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.121 H 284.0°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#322871
RGBrgb(50, 40, 113)
HSLhsl(248, 48%, 30%)
HSVhsv(248, 65%, 44%)
CMYKcmyk(55.8%, 64.6%, 0%, 55.7%)
CIE-LABlab(21.53, 26.23, -40.84)
CIE-LCHlch(21.53, 48.54, 302.71°)
OKLaboklab(33.45% 0.0292 -0.1171)
OKLCHoklch(33.45% 0.121 284)
XYZxyz(5.0539, 3.3877, 16.0072)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322871 #677128
analogous
#284371 #322871 #562871
triadic
#322871 #713228 #287132
tetradic
#322871 #712843 #677128 #287156
square
#322871 #712843 #677128 #287156
split-complementary
#322871 #715628 #437128
monochromatic
#0A0817 #1E1844 #322871 #46389E #6152C2

Accessibility & contrast

On white

12.52
#322871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#322871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322871
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322871#FFFFFF#000000##FFFFFF
##3228711.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#183A48
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #322871;
/* rgb */ color: rgb(50, 40, 113);
/* oklch */ color: oklch(33.5% 0.121 284.0);
Tailwind
colors: {
  custom: {
    50: '#70629a',
    500: '#322871',
    950: '#000000',
  },
}
SCSS
$custom: #322871;
$custom-light: #70629a;
$custom-dark: #000000;
JSON
{
  "hex": "#322871",
  "rgb": {
    "r": 50,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 248.219,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.33454,
    "c": 0.12072,
    "h": 284
  },
  "luminance": 0.03388
}

Semantic roles & 50–950 ramp

primary
#322871
secondary
#98A352
accent
#D750C5
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #322871

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

Preview Lab → · Contrast checker → · Palette generator →

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