#394F9C#394F9C

#394F9C is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.2% C 0.128 H 268.9°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#394F9C
RGBrgb(57, 79, 156)
HSLhsl(227, 46%, 42%)
HSVhsv(227, 63%, 61%)
CMYKcmyk(63.5%, 49.4%, 0%, 38.8%)
CIE-LABlab(35.72, 16.86, -44.64)
CIE-LCHlch(35.72, 47.72, 290.70°)
OKLaboklab(45.2% -0.0026 -0.1277)
OKLCHoklch(45.2% 0.128 268.9)
XYZxyz(10.4820, 8.8612, 32.6040)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394F9C #9C8639
analogous
#39819C #394F9C #55399C
triadic
#394F9C #9C394F #4F9C39
tetradic
#394F9C #9C3981 #9C8639 #399C55
square
#394F9C #9C3981 #9C8639 #399C55
split-complementary
#394F9C #9C5539 #819C39
monochromatic
#182242 #29386F #394F9C #526BC0 #7F91D0

Accessibility & contrast

On white

7.57
#394F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#394F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #394F9C
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394F9C#FFFFFF#000000##FFFFFF
##394F9C1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27599F
Deuteranopia (green-blind)
#13509A
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #394f9c;
/* rgb */ color: rgb(57, 79, 156);
/* oklch */ color: oklch(45.2% 0.128 268.9);
Tailwind
colors: {
  custom: {
    50: '#7980ba',
    500: '#394f9c',
    950: '#000000',
  },
}
SCSS
$custom: #394f9c;
$custom-light: #7980ba;
$custom-dark: #000000;
JSON
{
  "hex": "#394f9c",
  "rgb": {
    "r": 57,
    "g": 79,
    "b": 156
  },
  "hsl": {
    "h": 226.667,
    "s": 46.479,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45198,
    "c": 0.12776,
    "h": 268.9
  },
  "luminance": 0.08862
}

Semantic roles & 50–950 ramp

primary
#394F9C
secondary
#BAAB77
accent
#B952D6
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #394F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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