#394EC5#394EC5

#394EC5 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.2% C 0.186 H 270.2°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#394EC5
RGBrgb(57, 78, 197)
HSLhsl(231, 55%, 50%)
HSVhsv(231, 71%, 77%)
CMYKcmyk(71.1%, 60.4%, 0%, 22.7%)
CIE-LABlab(38.46, 32.34, -64.46)
CIE-LCHlch(38.46, 72.11, 296.64°)
OKLaboklab(48.21% 0.0006 -0.186)
OKLCHoklch(48.21% 0.186 270.2)
XYZxyz(14.4863, 10.3484, 54.0465)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394EC5 #C5B039
analogous
#3994C5 #394EC5 #6A39C5
triadic
#394EC5 #C5394E #4EC539
tetradic
#394EC5 #C53994 #C5B039 #39C56A
square
#394EC5 #C53994 #C5B039 #39C56A
split-complementary
#394EC5 #C56A39 #94C539
monochromatic
#1E2866 #2B3B96 #394EC5 #6878D3 #97A2E1

Accessibility & contrast

On white

6.84
#394EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#394EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #394EC5
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394EC5#FFFFFF#000000##FFFFFF
##394EC51.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#0054C3
Tritanopia (blue-blind)
#006C82
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #394ec5;
/* rgb */ color: rgb(57, 78, 197);
/* oklch */ color: oklch(48.2% 0.186 270.2);
Tailwind
colors: {
  custom: {
    50: '#827fd7',
    500: '#394ec5',
    950: '#000000',
  },
}
SCSS
$custom: #394ec5;
$custom-light: #827fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#394ec5",
  "rgb": {
    "r": 57,
    "g": 78,
    "b": 197
  },
  "hsl": {
    "h": 231,
    "s": 55.118,
    "l": 49.804
  },
  "oklch": {
    "l": 0.4821,
    "c": 0.18602,
    "h": 270.2
  },
  "luminance": 0.1035
}

Semantic roles & 50–950 ramp

primary
#394EC5
secondary
#CDC38D
accent
#C849DE
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #394EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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