#323798#323798

#323798 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.156 H 274.5°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#323798
RGBrgb(50, 55, 152)
HSLhsl(237, 50%, 40%)
HSVhsv(237, 67%, 60%)
CMYKcmyk(67.1%, 63.8%, 0%, 40.4%)
CIE-LABlab(28.58, 30.09, -53.79)
CIE-LCHlch(28.58, 61.63, 299.22°)
OKLaboklab(39.65% 0.0123 -0.1551)
OKLCHoklch(39.65% 0.156 274.5)
XYZxyz(8.3472, 5.6767, 30.3555)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#323798 #989332
analogous
#326A98 #323798 #603298
triadic
#323798 #983237 #379832
tetradic
#323798 #98326A #989332 #329860
square
#323798 #98326A #989332 #329860
split-complementary
#323798 #986032 #6A9832
monochromatic
#14163C #23266A #323798 #454BC2 #7378D1

Accessibility & contrast

On white

9.83
#323798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#323798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #323798
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##323798#FFFFFF#000000##FFFFFF
##3237981.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #323798;
/* rgb */ color: rgb(50, 55, 152);
/* oklch */ color: oklch(39.6% 0.156 274.5);
Tailwind
colors: {
  custom: {
    50: '#776eb7',
    500: '#323798',
    950: '#000000',
  },
}
SCSS
$custom: #323798;
$custom-light: #776eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#323798",
  "rgb": {
    "r": 50,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 237.059,
    "s": 50.495,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3965,
    "c": 0.15556,
    "h": 274.5
  },
  "luminance": 0.05677
}

Semantic roles & 50–950 ramp

primary
#323798
secondary
#B9B56D
accent
#D34EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #323798

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

Preview Lab → · Contrast checker → · Palette generator →

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