#393897#393897

#393897 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.2% C 0.151 H 277.6°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#393897
RGBrgb(57, 56, 151)
HSLhsl(241, 46%, 41%)
HSVhsv(241, 63%, 59%)
CMYKcmyk(62.3%, 62.9%, 0%, 40.8%)
CIE-LABlab(29.24, 30.21, -52.08)
CIE-LCHlch(29.24, 60.21, 300.12°)
OKLaboklab(40.24% 0.0201 -0.1499)
OKLCHoklch(40.24% 0.151 277.6)
XYZxyz(8.6856, 5.9319, 29.9594)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#393897 #969738
analogous
#386697 #393897 #693897
triadic
#393897 #973938 #389739
tetradic
#393897 #973866 #969738 #389769
square
#393897 #973866 #969738 #389769
split-complementary
#393897 #976938 #669738
monochromatic
#17173E #28276A #393897 #504FBE #7C7BCE

Accessibility & contrast

On white

9.60
#393897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#393897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #393897
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##393897#FFFFFF#000000##FFFFFF
##3938971.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #393897;
/* rgb */ color: rgb(57, 56, 151);
/* oklch */ color: oklch(40.2% 0.151 277.6);
Tailwind
colors: {
  custom: {
    50: '#7a6fb6',
    500: '#393897',
    950: '#000000',
  },
}
SCSS
$custom: #393897;
$custom-light: #7a6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#393897",
  "rgb": {
    "r": 57,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 240.632,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40236,
    "c": 0.15121,
    "h": 277.6
  },
  "luminance": 0.05933
}

Semantic roles & 50–950 ramp

primary
#393897
secondary
#B7B773
accent
#D652D4
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #393897

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

Preview Lab → · Contrast checker → · Palette generator →

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