#394879#394879

#394879 is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.3% C 0.084 H 269.6°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#394879
RGBrgb(57, 72, 121)
HSLhsl(226, 36%, 35%)
HSVhsv(226, 53%, 47%)
CMYKcmyk(52.9%, 40.5%, 0%, 52.5%)
CIE-LABlab(31.54, 9.10, -29.83)
CIE-LCHlch(31.54, 31.19, 286.97°)
OKLaboklab(41.31% -0.0006 -0.0844)
OKLCHoklch(41.31% 0.084 269.6)
XYZxyz(7.4548, 6.8846, 19.0215)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394879 #796A39
analogous
#396879 #394879 #4A3979
triadic
#394879 #793948 #487939
tetradic
#394879 #793968 #796A39 #39794A
square
#394879 #793968 #796A39 #39794A
split-complementary
#394879 #794A39 #687939
monochromatic
#121626 #252F4F #394879 #4D61A3 #7182BC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##394879#FFFFFF#000000##FFFFFF
##3948791.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)
#354D7B
Deuteranopia (green-blind)
#2E4878
Tritanopia (blue-blind)
#1D525A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #394879;
/* rgb */ color: rgb(57, 72, 121);
/* oklch */ color: oklch(41.3% 0.084 269.6);
Tailwind
colors: {
  custom: {
    50: '#747aa0',
    500: '#394879',
    950: '#000000',
  },
}
SCSS
$custom: #394879;
$custom-light: #747aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#394879",
  "rgb": {
    "r": 57,
    "g": 72,
    "b": 121
  },
  "hsl": {
    "h": 225.938,
    "s": 35.955,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41308,
    "c": 0.08437,
    "h": 269.6
  },
  "luminance": 0.06885
}

Semantic roles & 50–950 ramp

primary
#394879
secondary
#A59769
accent
#B25CCC
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #394879

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

Preview Lab → · Contrast checker → · Palette generator →

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