#394EB4#394EB4

#394EB4 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.8% C 0.163 H 270.1°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#394EB4
RGBrgb(57, 78, 180)
HSLhsl(230, 52%, 46%)
HSVhsv(230, 68%, 71%)
CMYKcmyk(68.3%, 56.7%, 0%, 29.4%)
CIE-LABlab(37.14, 26.22, -56.65)
CIE-LCHlch(37.14, 62.42, 294.84°)
OKLaboklab(46.81% 0.0003 -0.1631)
OKLCHoklch(46.81% 0.163 270.1)
XYZxyz(12.6471, 9.6127, 44.3601)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394EB4 #B49F39
analogous
#398CB4 #394EB4 #6239B4
triadic
#394EB4 #B4394E #4EB439
tetradic
#394EB4 #B4398C #B49F39 #39B462
square
#394EB4 #B4398C #B49F39 #39B462
split-complementary
#394EB4 #B46239 #8CB439
monochromatic
#1C2657 #2A3A86 #394EB4 #5E71CC #8D9ADB

Accessibility & contrast

On white

7.18
#394EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#394EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #394EB4
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394EB4#FFFFFF#000000##FFFFFF
##394EB41.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#0052B2
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #394eb4;
/* rgb */ color: rgb(57, 78, 180);
/* oklch */ color: oklch(46.8% 0.163 270.1);
Tailwind
colors: {
  custom: {
    50: '#7e7fcb',
    500: '#394eb4',
    950: '#000000',
  },
}
SCSS
$custom: #394eb4;
$custom-light: #7e7fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#394eb4",
  "rgb": {
    "r": 57,
    "g": 78,
    "b": 180
  },
  "hsl": {
    "h": 229.756,
    "s": 51.899,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4681,
    "c": 0.16307,
    "h": 270.1
  },
  "luminance": 0.09614
}

Semantic roles & 50–950 ramp

primary
#394EB4
secondary
#C5BA83
accent
#C34CDB
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #394EB4

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

Preview Lab → · Contrast checker → · Palette generator →

#394EB4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva