#395798#395798

#395798 is a mid, moderate blue. Relative luminance 0.100; OKLCH L 46.7% C 0.112 H 263.9°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#395798
RGBrgb(57, 87, 152)
HSLhsl(221, 45%, 41%)
HSVhsv(221, 63%, 60%)
CMYKcmyk(62.5%, 42.8%, 0%, 40.4%)
CIE-LABlab(37.76, 10.18, -38.96)
CIE-LCHlch(37.76, 40.27, 284.64°)
OKLaboklab(46.68% -0.0118 -0.1109)
OKLCHoklch(46.68% 0.112 263.9)
XYZxyz(10.7611, 9.9523, 31.0536)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#395798 #987A39
analogous
#398698 #395798 #4A3998
triadic
#395798 #983957 #579839
tetradic
#395798 #983986 #987A39 #39984A
square
#395798 #983986 #987A39 #39984A
split-complementary
#395798 #984A39 #869839
monochromatic
#18243F #283E6B #395798 #5173BE #7D97CE

Accessibility & contrast

On white

7.02
#395798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#395798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #395798
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##395798#FFFFFF#000000##FFFFFF
##3957981.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5E9B
Deuteranopia (green-blind)
#2C5597
Tritanopia (blue-blind)
#006670
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #395798;
/* rgb */ color: rgb(57, 87, 152);
/* oklch */ color: oklch(46.7% 0.112 263.9);
Tailwind
colors: {
  custom: {
    50: '#7886b7',
    500: '#395798',
    950: '#000000',
  },
}
SCSS
$custom: #395798;
$custom-light: #7886b7;
$custom-dark: #000000;
JSON
{
  "hex": "#395798",
  "rgb": {
    "r": 57,
    "g": 87,
    "b": 152
  },
  "hsl": {
    "h": 221.053,
    "s": 45.455,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46681,
    "c": 0.11158,
    "h": 263.9
  },
  "luminance": 0.09953
}

Semantic roles & 50–950 ramp

primary
#395798
secondary
#B8A375
accent
#AC53D5
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #395798

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

Preview Lab → · Contrast checker → · Palette generator →

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