#393791#393791

#393791 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.5% C 0.144 H 278.5°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#393791
RGBrgb(57, 55, 145)
HSLhsl(241, 45%, 39%)
HSVhsv(241, 62%, 57%)
CMYKcmyk(60.7%, 62.1%, 0%, 43.1%)
CIE-LABlab(28.50, 28.78, -49.61)
CIE-LCHlch(28.50, 57.35, 300.12°)
OKLaboklab(39.54% 0.0213 -0.1426)
OKLCHoklch(39.54% 0.144 278.5)
XYZxyz(8.1627, 5.6460, 27.4422)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#393791 #8F9137
analogous
#376291 #393791 #663791
triadic
#393791 #913937 #379139
tetradic
#393791 #913762 #8F9137 #379166
square
#393791 #913762 #8F9137 #379166
split-complementary
#393791 #916637 #629137
monochromatic
#161538 #282665 #393791 #4D4BBB #7977CB

Accessibility & contrast

On white

9.86
#393791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#393791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #393791
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##393791#FFFFFF#000000##FFFFFF
##3937911.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004794
Deuteranopia (green-blind)
#00408F
Tritanopia (blue-blind)
#004D5E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #393791;
/* rgb */ color: rgb(57, 55, 145);
/* oklch */ color: oklch(39.5% 0.144 278.5);
Tailwind
colors: {
  custom: {
    50: '#796eb2',
    500: '#393791',
    950: '#000000',
  },
}
SCSS
$custom: #393791;
$custom-light: #796eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#393791",
  "rgb": {
    "r": 57,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 241.333,
    "s": 45,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39539,
    "c": 0.14418,
    "h": 278.5
  },
  "luminance": 0.05647
}

Semantic roles & 50–950 ramp

primary
#393791
secondary
#B3B470
accent
#D553D2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #393791

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

Preview Lab → · Contrast checker → · Palette generator →

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