#393F87#393F87

#393F87 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.3% C 0.119 H 276.1°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#393F87
RGBrgb(57, 63, 135)
HSLhsl(235, 41%, 38%)
HSVhsv(235, 58%, 53%)
CMYKcmyk(57.8%, 53.3%, 0%, 47.1%)
CIE-LABlab(29.85, 20.01, -41.25)
CIE-LCHlch(29.85, 45.85, 295.87°)
OKLaboklab(40.3% 0.0126 -0.118)
OKLCHoklch(40.3% 0.119 276.1)
XYZxyz(7.8366, 6.1736, 23.6956)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#393F87 #878139
analogous
#396687 #393F87 #5A3987
triadic
#393F87 #87393F #3F8739
tetradic
#393F87 #873966 #878139 #39875A
square
#393F87 #873966 #878139 #39875A
split-complementary
#393F87 #875A39 #668739
monochromatic
#151731 #272B5C #393F87 #4B53B2 #757CC5

Accessibility & contrast

On white

9.40
#393F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#393F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #393F87
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##393F87#FFFFFF#000000##FFFFFF
##393F871.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184A8A
Deuteranopia (green-blind)
#084385
Tritanopia (blue-blind)
#0E4F5C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #393f87;
/* rgb */ color: rgb(57, 63, 135);
/* oklch */ color: oklch(40.3% 0.119 276.1);
Tailwind
colors: {
  custom: {
    50: '#7673aa',
    500: '#393f87',
    950: '#000000',
  },
}
SCSS
$custom: #393f87;
$custom-light: #7673aa;
$custom-dark: #000000;
JSON
{
  "hex": "#393f87",
  "rgb": {
    "r": 57,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 235.385,
    "s": 40.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40301,
    "c": 0.11864,
    "h": 276.1
  },
  "luminance": 0.06174
}

Semantic roles & 50–950 ramp

primary
#393F87
secondary
#AEA96E
accent
#C757D0
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #393F87

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

Preview Lab → · Contrast checker → · Palette generator →

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