#393987#393987

#393987 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.1% C 0.127 H 278.8°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#393987
RGBrgb(57, 57, 135)
HSLhsl(240, 41%, 38%)
HSVhsv(240, 58%, 53%)
CMYKcmyk(57.8%, 57.8%, 0%, 47.1%)
CIE-LABlab(28.23, 24.01, -43.86)
CIE-LCHlch(28.23, 50.00, 298.70°)
OKLaboklab(39.1% 0.0194 -0.1257)
OKLCHoklch(39.1% 0.127 278.8)
XYZxyz(7.5223, 5.5449, 23.5909)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#393987 #878739
analogous
#396087 #393987 #603987
triadic
#393987 #873939 #398739
tetradic
#393987 #873960 #878739 #398760
square
#393987 #873960 #878739 #398760
split-complementary
#393987 #876039 #608739
monochromatic
#151531 #27275C #393987 #4B4BB2 #7575C5

Accessibility & contrast

On white

9.96
#393987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#393987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #393987
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##393987#FFFFFF#000000##FFFFFF
##3939871.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#0F4B5A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #393987;
/* rgb */ color: rgb(57, 57, 135);
/* oklch */ color: oklch(39.1% 0.127 278.8);
Tailwind
colors: {
  custom: {
    50: '#776fab',
    500: '#393987',
    950: '#000000',
  },
}
SCSS
$custom: #393987;
$custom-light: #776fab;
$custom-dark: #000000;
JSON
{
  "hex": "#393987",
  "rgb": {
    "r": 57,
    "g": 57,
    "b": 135
  },
  "hsl": {
    "h": 240,
    "s": 40.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39096,
    "c": 0.12716,
    "h": 278.8
  },
  "luminance": 0.05545
}

Semantic roles & 50–950 ramp

primary
#393987
secondary
#AEAE6E
accent
#D057D0
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #393987

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

Preview Lab → · Contrast checker → · Palette generator →

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