#394F97#394F97

#394F97 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.8% C 0.120 H 268.4°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#394F97
RGBrgb(57, 79, 151)
HSLhsl(226, 45%, 41%)
HSVhsv(226, 62%, 59%)
CMYKcmyk(62.3%, 47.7%, 0%, 40.8%)
CIE-LABlab(35.39, 15.06, -42.14)
CIE-LCHlch(35.39, 44.75, 289.66°)
OKLaboklab(44.85% -0.0033 -0.1204)
OKLCHoklch(44.85% 0.12 268.4)
XYZxyz(10.0673, 8.6953, 30.4200)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394F97 #978139
analogous
#397E97 #394F97 #523997
triadic
#394F97 #97394F #4F9739
tetradic
#394F97 #97397E #978139 #399752
square
#394F97 #97397E #978139 #399752
split-complementary
#394F97 #975239 #7E9739
monochromatic
#17213E #28386B #394F97 #506ABD #7D90CE

Accessibility & contrast

On white

7.67
#394F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#394F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #394F97
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394F97#FFFFFF#000000##FFFFFF
##394F971.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C589A
Deuteranopia (green-blind)
#1C4F95
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #394f97;
/* rgb */ color: rgb(57, 79, 151);
/* oklch */ color: oklch(44.8% 0.120 268.4);
Tailwind
colors: {
  custom: {
    50: '#7880b6',
    500: '#394f97',
    950: '#000000',
  },
}
SCSS
$custom: #394f97;
$custom-light: #7880b6;
$custom-dark: #000000;
JSON
{
  "hex": "#394f97",
  "rgb": {
    "r": 57,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 225.957,
    "s": 45.192,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44846,
    "c": 0.12042,
    "h": 268.4
  },
  "luminance": 0.08696
}

Semantic roles & 50–950 ramp

primary
#394F97
secondary
#B7A875
accent
#B653D5
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #394F97

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

Preview Lab → · Contrast checker → · Palette generator →

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