#393787#393787

#393787 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.130 H 279.5°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#393787
RGBrgb(57, 55, 135)
HSLhsl(242, 42%, 37%)
HSVhsv(242, 59%, 53%)
CMYKcmyk(57.8%, 59.3%, 0%, 47.1%)
CIE-LABlab(27.71, 25.33, -44.70)
CIE-LCHlch(27.71, 51.38, 299.54°)
OKLaboklab(38.71% 0.0216 -0.1282)
OKLCHoklch(38.71% 0.13 279.5)
XYZxyz(7.4253, 5.3510, 23.5585)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#393787 #858737
analogous
#375D87 #393787 #613787
triadic
#393787 #873937 #378739
tetradic
#393787 #87375D #858737 #378761
square
#393787 #87375D #858737 #378761
split-complementary
#393787 #876137 #5D8737
monochromatic
#141430 #27255C #393787 #4B49B2 #7573C6

Accessibility & contrast

On white

10.14
#393787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#393787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #393787
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##393787#FFFFFF#000000##FFFFFF
##3937871.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#104A59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #393787;
/* rgb */ color: rgb(57, 55, 135);
/* oklch */ color: oklch(38.7% 0.130 279.5);
Tailwind
colors: {
  custom: {
    50: '#776eab',
    500: '#393787',
    950: '#000000',
  },
}
SCSS
$custom: #393787;
$custom-light: #776eab;
$custom-dark: #000000;
JSON
{
  "hex": "#393787",
  "rgb": {
    "r": 57,
    "g": 55,
    "b": 135
  },
  "hsl": {
    "h": 241.5,
    "s": 42.105,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38708,
    "c": 0.12998,
    "h": 279.5
  },
  "luminance": 0.05352
}

Semantic roles & 50–950 ramp

primary
#393787
secondary
#ADAF6B
accent
#D256CF
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #393787

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

Preview Lab → · Contrast checker → · Palette generator →

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