#394797#394797

#394797 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.2% C 0.131 H 272.3°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#394797
RGBrgb(57, 71, 151)
HSLhsl(231, 45%, 41%)
HSVhsv(231, 62%, 59%)
CMYKcmyk(62.3%, 53%, 0%, 40.8%)
CIE-LABlab(33.16, 20.36, -45.73)
CIE-LCHlch(33.16, 50.06, 294.00°)
OKLaboklab(43.15% 0.0052 -0.131)
OKLCHoklch(43.15% 0.131 272.3)
XYZxyz(9.5246, 7.6099, 30.2391)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394797 #978939
analogous
#397697 #394797 #5A3997
triadic
#394797 #973947 #479739
tetradic
#394797 #973976 #978939 #39975A
square
#394797 #973976 #978939 #39975A
split-complementary
#394797 #975A39 #769739
monochromatic
#171D3E #28326B #394797 #5060BD #7D89CE

Accessibility & contrast

On white

8.33
#394797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#394797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #394797
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394797#FFFFFF#000000##FFFFFF
##3947971.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18529A
Deuteranopia (green-blind)
#004A95
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #394797;
/* rgb */ color: rgb(57, 71, 151);
/* oklch */ color: oklch(43.2% 0.131 272.3);
Tailwind
colors: {
  custom: {
    50: '#797ab6',
    500: '#394797',
    950: '#000000',
  },
}
SCSS
$custom: #394797;
$custom-light: #797ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#394797",
  "rgb": {
    "r": 57,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 231.064,
    "s": 45.192,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43152,
    "c": 0.13115,
    "h": 272.3
  },
  "luminance": 0.07611
}

Semantic roles & 50–950 ramp

primary
#394797
secondary
#B7AD75
accent
#C253D5
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0911
muted
#7C7B80

Preview Lab

Preview with #394797

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

Preview Lab → · Contrast checker → · Palette generator →

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