#395797#395797

#395797 is a mid, moderate blue. Relative luminance 0.099; OKLCH L 46.6% C 0.110 H 263.7°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#395797
RGBrgb(57, 87, 151)
HSLhsl(221, 45%, 41%)
HSVhsv(221, 62%, 59%)
CMYKcmyk(62.3%, 42.4%, 0%, 40.8%)
CIE-LABlab(37.70, 9.82, -38.46)
CIE-LCHlch(37.70, 39.69, 284.32°)
OKLaboklab(46.62% -0.012 -0.1094)
OKLCHoklch(46.62% 0.11 263.7)
XYZxyz(10.6795, 9.9197, 30.6241)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#395797 #977939
analogous
#398697 #395797 #4A3997
triadic
#395797 #973957 #579739
tetradic
#395797 #973986 #977939 #39974A
square
#395797 #973986 #977939 #39974A
split-complementary
#395797 #974A39 #869739
monochromatic
#17243E #283D6B #395797 #5073BD #7D97CE

Accessibility & contrast

On white

7.04
#395797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#395797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #395797
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##395797#FFFFFF#000000##FFFFFF
##3957971.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5D99
Deuteranopia (green-blind)
#2D5596
Tritanopia (blue-blind)
#00656F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #395797;
/* rgb */ color: rgb(57, 87, 151);
/* oklch */ color: oklch(46.6% 0.110 263.7);
Tailwind
colors: {
  custom: {
    50: '#7886b6',
    500: '#395797',
    950: '#000000',
  },
}
SCSS
$custom: #395797;
$custom-light: #7886b6;
$custom-dark: #000000;
JSON
{
  "hex": "#395797",
  "rgb": {
    "r": 57,
    "g": 87,
    "b": 151
  },
  "hsl": {
    "h": 220.851,
    "s": 45.192,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46617,
    "c": 0.11011,
    "h": 263.7
  },
  "luminance": 0.09921
}

Semantic roles & 50–950 ramp

primary
#395797
secondary
#B7A275
accent
#AB53D5
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #395797

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

Preview Lab → · Contrast checker → · Palette generator →

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