#393C8B#393C8B

#393C8B is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.0% C 0.129 H 277.2°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#393C8B
RGBrgb(57, 60, 139)
HSLhsl(238, 42%, 38%)
HSVhsv(238, 59%, 55%)
CMYKcmyk(59%, 56.8%, 0%, 45.5%)
CIE-LABlab(29.32, 23.41, -44.57)
CIE-LCHlch(29.32, 50.35, 297.71°)
OKLaboklab(40% 0.0162 -0.1277)
OKLCHoklch(40% 0.129 277.2)
XYZxyz(7.9619, 5.9651, 25.1529)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#393C8B #8B8839
analogous
#39658B #393C8B #5F398B
triadic
#393C8B #8B393C #3C8B39
tetradic
#393C8B #8B3965 #8B8839 #398B5F
square
#393C8B #8B3965 #8B8839 #398B5F
split-complementary
#393C8B #8B5F39 #658B39
monochromatic
#151734 #272960 #393C8B #4C50B5 #777AC7

Accessibility & contrast

On white

9.58
#393C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#393C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #393C8B
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##393C8B#FFFFFF#000000##FFFFFF
##393C8B1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03498E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#064E5D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #393c8b;
/* rgb */ color: rgb(57, 60, 139);
/* oklch */ color: oklch(40.0% 0.129 277.2);
Tailwind
colors: {
  custom: {
    50: '#7771ad',
    500: '#393c8b',
    950: '#000000',
  },
}
SCSS
$custom: #393c8b;
$custom-light: #7771ad;
$custom-dark: #000000;
JSON
{
  "hex": "#393c8b",
  "rgb": {
    "r": 57,
    "g": 60,
    "b": 139
  },
  "hsl": {
    "h": 237.805,
    "s": 41.837,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40002,
    "c": 0.12877,
    "h": 277.2
  },
  "luminance": 0.05966
}

Semantic roles & 50–950 ramp

primary
#393C8B
secondary
#B0AE6F
accent
#CD56D2
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #393C8B

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

Preview Lab → · Contrast checker → · Palette generator →

#393C8B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva