#393997#393997

#393997 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.150 H 277.3°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#393997
RGBrgb(57, 57, 151)
HSLhsl(240, 45%, 41%)
HSVhsv(240, 62%, 59%)
CMYKcmyk(62.3%, 62.3%, 0%, 40.8%)
CIE-LABlab(29.49, 29.57, -51.68)
CIE-LCHlch(29.49, 59.54, 299.77°)
OKLaboklab(40.42% 0.0191 -0.1487)
OKLCHoklch(40.42% 0.15 277.3)
XYZxyz(8.7346, 6.0298, 29.9757)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#393997 #979739
analogous
#396897 #393997 #683997
triadic
#393997 #973939 #399739
tetradic
#393997 #973968 #979739 #399768
square
#393997 #973968 #979739 #399768
split-complementary
#393997 #976839 #689739
monochromatic
#17173E #28286B #393997 #5050BD #7D7DCE

Accessibility & contrast

On white

9.52
#393997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#393997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #393997
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##393997#FFFFFF#000000##FFFFFF
##3939971.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #393997;
/* rgb */ color: rgb(57, 57, 151);
/* oklch */ color: oklch(40.4% 0.150 277.3);
Tailwind
colors: {
  custom: {
    50: '#7a6fb6',
    500: '#393997',
    950: '#000000',
  },
}
SCSS
$custom: #393997;
$custom-light: #7a6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#393997",
  "rgb": {
    "r": 57,
    "g": 57,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 45.192,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40418,
    "c": 0.14991,
    "h": 277.3
  },
  "luminance": 0.0603
}

Semantic roles & 50–950 ramp

primary
#393997
secondary
#B7B775
accent
#D553D5
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #393997

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

Preview Lab → · Contrast checker → · Palette generator →

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