#394D97#394D97

#394D97 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.4% C 0.123 H 269.5°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#394D97
RGBrgb(57, 77, 151)
HSLhsl(227, 45%, 41%)
HSVhsv(227, 62%, 59%)
CMYKcmyk(62.3%, 49%, 0%, 40.8%)
CIE-LABlab(34.82, 16.38, -43.05)
CIE-LCHlch(34.82, 46.06, 290.83°)
OKLaboklab(44.42% -0.0011 -0.1231)
OKLCHoklch(44.42% 0.123 269.5)
XYZxyz(9.9253, 8.4111, 30.3726)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394D97 #978339
analogous
#397C97 #394D97 #543997
triadic
#394D97 #97394D #4D9739
tetradic
#394D97 #97397C #978339 #399754
square
#394D97 #97397C #978339 #399754
split-complementary
#394D97 #975439 #7C9739
monochromatic
#17203E #28366B #394D97 #5067BD #7D8ECE

Accessibility & contrast

On white

7.83
#394D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#394D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #394D97
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394D97#FFFFFF#000000##FFFFFF
##394D971.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28569A
Deuteranopia (green-blind)
#174E95
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #394d97;
/* rgb */ color: rgb(57, 77, 151);
/* oklch */ color: oklch(44.4% 0.123 269.5);
Tailwind
colors: {
  custom: {
    50: '#797eb6',
    500: '#394d97',
    950: '#000000',
  },
}
SCSS
$custom: #394d97;
$custom-light: #797eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#394d97",
  "rgb": {
    "r": 57,
    "g": 77,
    "b": 151
  },
  "hsl": {
    "h": 227.234,
    "s": 45.192,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44415,
    "c": 0.12309,
    "h": 269.5
  },
  "luminance": 0.08412
}

Semantic roles & 50–950 ramp

primary
#394D97
secondary
#B7A975
accent
#B953D5
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0911
muted
#7C7B80

Preview Lab

Preview with #394D97

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

Preview Lab → · Contrast checker → · Palette generator →

#394D97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva