#394786#394786

#394786 is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.9% C 0.106 H 271.7°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#394786
RGBrgb(57, 71, 134)
HSLhsl(229, 40%, 37%)
HSVhsv(229, 57%, 53%)
CMYKcmyk(57.5%, 47%, 0%, 47.5%)
CIE-LABlab(32.03, 14.30, -37.14)
CIE-LCHlch(32.03, 39.80, 291.06°)
OKLaboklab(41.93% 0.0032 -0.1058)
OKLCHoklch(41.93% 0.106 271.7)
XYZxyz(8.2422, 7.0970, 23.4852)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394786 #867839
analogous
#396D86 #394786 #523986
triadic
#394786 #863947 #478639
tetradic
#394786 #86396D #867839 #398652
square
#394786 #86396D #867839 #398652
split-complementary
#394786 #865239 #6D8639
monochromatic
#141A30 #27305B #394786 #4B5EB1 #7583C4

Accessibility & contrast

On white

8.68
#394786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#394786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #394786
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394786#FFFFFF#000000##FFFFFF
##3947861.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4F88
Deuteranopia (green-blind)
#214885
Tritanopia (blue-blind)
#0D5560
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #394786;
/* rgb */ color: rgb(57, 71, 134);
/* oklch */ color: oklch(41.9% 0.106 271.7);
Tailwind
colors: {
  custom: {
    50: '#7679aa',
    500: '#394786',
    950: '#000000',
  },
}
SCSS
$custom: #394786;
$custom-light: #7679aa;
$custom-dark: #000000;
JSON
{
  "hex": "#394786",
  "rgb": {
    "r": 57,
    "g": 71,
    "b": 134
  },
  "hsl": {
    "h": 229.091,
    "s": 40.314,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41932,
    "c": 0.10583,
    "h": 271.7
  },
  "luminance": 0.07098
}

Semantic roles & 50–950 ramp

primary
#394786
secondary
#ADA26D
accent
#BA58D0
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #394786

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

Preview Lab → · Contrast checker → · Palette generator →

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