#394987#394987

#394987 is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.4% C 0.105 H 270.5°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#394987
RGBrgb(57, 73, 135)
HSLhsl(228, 41%, 38%)
HSVhsv(228, 58%, 53%)
CMYKcmyk(57.8%, 45.9%, 0%, 47.1%)
CIE-LABlab(32.66, 13.32, -36.74)
CIE-LCHlch(32.66, 39.08, 289.93°)
OKLaboklab(42.44% 0.001 -0.1046)
OKLCHoklch(42.44% 0.105 270.5)
XYZxyz(8.4416, 7.3836, 23.8973)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394987 #877739
analogous
#397087 #394987 #503987
triadic
#394987 #873949 #498739
tetradic
#394987 #873970 #877739 #398750
square
#394987 #873970 #877739 #398750
split-complementary
#394987 #875039 #708739
monochromatic
#151A31 #27325C #394987 #4B60B2 #7586C5

Accessibility & contrast

On white

8.48
#394987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#394987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #394987
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394987#FFFFFF#000000##FFFFFF
##3949871.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5089
Deuteranopia (green-blind)
#234A86
Tritanopia (blue-blind)
#0A5761
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #394987;
/* rgb */ color: rgb(57, 73, 135);
/* oklch */ color: oklch(42.4% 0.105 270.5);
Tailwind
colors: {
  custom: {
    50: '#767baa',
    500: '#394987',
    950: '#000000',
  },
}
SCSS
$custom: #394987;
$custom-light: #767baa;
$custom-dark: #000000;
JSON
{
  "hex": "#394987",
  "rgb": {
    "r": 57,
    "g": 73,
    "b": 135
  },
  "hsl": {
    "h": 227.692,
    "s": 40.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42439,
    "c": 0.10458,
    "h": 270.5
  },
  "luminance": 0.07384
}

Semantic roles & 50–950 ramp

primary
#394987
secondary
#AEA16E
accent
#B857D0
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #394987

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

Preview Lab → · Contrast checker → · Palette generator →

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