#393786#393786

#393786 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.6% C 0.129 H 279.6°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#393786
RGBrgb(57, 55, 134)
HSLhsl(242, 42%, 37%)
HSVhsv(242, 59%, 53%)
CMYKcmyk(57.5%, 59%, 0%, 47.5%)
CIE-LABlab(27.64, 24.99, -44.20)
CIE-LCHlch(27.64, 50.78, 299.48°)
OKLaboklab(38.63% 0.0215 -0.1267)
OKLCHoklch(38.63% 0.129 279.6)
XYZxyz(7.3553, 5.3230, 23.1895)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#393786 #848637
analogous
#375D86 #393786 #613786
triadic
#393786 #863937 #378639
tetradic
#393786 #86375D #848637 #378661
square
#393786 #86375D #848637 #378661
split-complementary
#393786 #866137 #5D8637
monochromatic
#14132F #27255B #393786 #4B49B1 #7472C5

Accessibility & contrast

On white

10.17
#393786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #393786
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##393786#FFFFFF#000000##FFFFFF
##3937861.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004489
Deuteranopia (green-blind)
#003E84
Tritanopia (blue-blind)
#114959
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #393786;
/* rgb */ color: rgb(57, 55, 134);
/* oklch */ color: oklch(38.6% 0.129 279.6);
Tailwind
colors: {
  custom: {
    50: '#776eaa',
    500: '#393786',
    950: '#000000',
  },
}
SCSS
$custom: #393786;
$custom-light: #776eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#393786",
  "rgb": {
    "r": 57,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 241.519,
    "s": 41.799,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38628,
    "c": 0.12853,
    "h": 279.6
  },
  "luminance": 0.05323
}

Semantic roles & 50–950 ramp

primary
#393786
secondary
#ACAE6B
accent
#D256CE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #393786

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

Preview Lab → · Contrast checker → · Palette generator →

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