#323397#323397

#323397 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.8% C 0.159 H 275.6°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#323397
RGBrgb(50, 51, 151)
HSLhsl(239, 50%, 39%)
HSVhsv(239, 67%, 59%)
CMYKcmyk(66.9%, 66.2%, 0%, 40.8%)
CIE-LABlab(27.52, 32.31, -54.92)
CIE-LCHlch(27.52, 63.72, 300.47°)
OKLaboklab(38.84% 0.0156 -0.1584)
OKLCHoklch(38.84% 0.159 275.6)
XYZxyz(8.0833, 5.2794, 29.8652)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#323397 #979632
analogous
#326697 #323397 #643297
triadic
#323397 #973233 #339732
tetradic
#323397 #973266 #979632 #329764
square
#323397 #973266 #979632 #329764
split-complementary
#323397 #976432 #669732
monochromatic
#14143B #232369 #323397 #4546C1 #7374D1

Accessibility & contrast

On white

10.21
#323397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#323397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #323397
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##323397#FFFFFF#000000##FFFFFF
##3233971.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #323397;
/* rgb */ color: rgb(50, 51, 151);
/* oklch */ color: oklch(38.8% 0.159 275.6);
Tailwind
colors: {
  custom: {
    50: '#776bb6',
    500: '#323397',
    950: '#000000',
  },
}
SCSS
$custom: #323397;
$custom-light: #776bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#323397",
  "rgb": {
    "r": 50,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 239.406,
    "s": 50.249,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38844,
    "c": 0.15919,
    "h": 275.6
  },
  "luminance": 0.0528
}

Semantic roles & 50–950 ramp

primary
#323397
secondary
#B9B86C
accent
#D84EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #323397

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

Preview Lab → · Contrast checker → · Palette generator →

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