#322381#322381

#322381 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.149 H 282.3°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#322381
RGBrgb(50, 35, 129)
HSLhsl(250, 57%, 32%)
HSVhsv(250, 73%, 51%)
CMYKcmyk(61.2%, 72.9%, 0%, 49.4%)
CIE-LABlab(21.82, 34.72, -50.58)
CIE-LCHlch(21.82, 61.35, 304.47°)
OKLaboklab(34.1% 0.0319 -0.1457)
OKLCHoklch(34.1% 0.149 282.3)
XYZxyz(5.8776, 3.4648, 21.1237)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322381 #728123
analogous
#234381 #322381 #612381
triadic
#322381 #813223 #238132
tetradic
#322381 #812343 #728123 #238161
square
#322381 #812343 #728123 #238161
split-complementary
#322381 #816123 #438123
monochromatic
#0D0921 #1F1651 #322381 #4530B1 #644FCF

Accessibility & contrast

On white

12.40
#322381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#322381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322381
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322381#FFFFFF#000000##FFFFFF
##3223811.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #322381;
/* rgb */ color: rgb(50, 35, 129);
/* oklch */ color: oklch(34.1% 0.149 282.3);
Tailwind
colors: {
  custom: {
    50: '#745fa6',
    500: '#322381',
    950: '#000000',
  },
}
SCSS
$custom: #322381;
$custom-light: #745fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#322381",
  "rgb": {
    "r": 50,
    "g": 35,
    "b": 129
  },
  "hsl": {
    "h": 249.574,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34104,
    "c": 0.14916,
    "h": 282.3
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#322381
secondary
#A3B34D
accent
#E147C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #322381

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

Preview Lab → · Contrast checker → · Palette generator →

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