#394197#394197

#394197 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.9% C 0.139 H 274.7°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#394197
RGBrgb(57, 65, 151)
HSLhsl(235, 45%, 41%)
HSVhsv(235, 62%, 59%)
CMYKcmyk(62.3%, 57%, 0%, 40.8%)
CIE-LABlab(31.54, 24.33, -48.34)
CIE-LCHlch(31.54, 54.12, 296.72°)
OKLaboklab(41.94% 0.0114 -0.1388)
OKLCHoklch(41.94% 0.139 274.7)
XYZxyz(9.1617, 6.8841, 30.1181)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394197 #978F39
analogous
#397097 #394197 #603997
triadic
#394197 #973941 #419739
tetradic
#394197 #973970 #978F39 #399760
square
#394197 #973970 #978F39 #399760
split-complementary
#394197 #976039 #709739
monochromatic
#171B3E #282E6B #394197 #5059BD #7D84CE

Accessibility & contrast

On white

8.83
#394197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#394197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #394197
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394197#FFFFFF#000000##FFFFFF
##3941971.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #394197;
/* rgb */ color: rgb(57, 65, 151);
/* oklch */ color: oklch(41.9% 0.139 274.7);
Tailwind
colors: {
  custom: {
    50: '#7975b6',
    500: '#394197',
    950: '#000000',
  },
}
SCSS
$custom: #394197;
$custom-light: #7975b6;
$custom-dark: #000000;
JSON
{
  "hex": "#394197",
  "rgb": {
    "r": 57,
    "g": 65,
    "b": 151
  },
  "hsl": {
    "h": 234.894,
    "s": 45.192,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4194,
    "c": 0.13926,
    "h": 274.7
  },
  "luminance": 0.06885
}

Semantic roles & 50–950 ramp

primary
#394197
secondary
#B7B175
accent
#CA53D5
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #394197

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

Preview Lab → · Contrast checker → · Palette generator →

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