#394087#394087

#394087 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.5% C 0.117 H 275.6°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#394087
RGBrgb(57, 64, 135)
HSLhsl(235, 41%, 38%)
HSVhsv(235, 58%, 53%)
CMYKcmyk(57.8%, 52.6%, 0%, 47.1%)
CIE-LABlab(30.12, 19.34, -40.81)
CIE-LCHlch(30.12, 45.16, 295.35°)
OKLaboklab(40.51% 0.0115 -0.1166)
OKLCHoklch(40.51% 0.117 275.6)
XYZxyz(7.8925, 6.2854, 23.7143)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394087 #878039
analogous
#396787 #394087 #593987
triadic
#394087 #873940 #408739
tetradic
#394087 #873967 #878039 #398759
square
#394087 #873967 #878039 #398759
split-complementary
#394087 #875939 #678739
monochromatic
#151731 #272C5C #394087 #4B54B2 #757DC5

Accessibility & contrast

On white

9.30
#394087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#394087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #394087
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394087#FFFFFF#000000##FFFFFF
##3940871.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4A8A
Deuteranopia (green-blind)
#0D4485
Tritanopia (blue-blind)
#0D505D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #394087;
/* rgb */ color: rgb(57, 64, 135);
/* oklch */ color: oklch(40.5% 0.117 275.6);
Tailwind
colors: {
  custom: {
    50: '#7674aa',
    500: '#394087',
    950: '#000000',
  },
}
SCSS
$custom: #394087;
$custom-light: #7674aa;
$custom-dark: #000000;
JSON
{
  "hex": "#394087",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 135
  },
  "hsl": {
    "h": 234.615,
    "s": 40.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40508,
    "c": 0.11721,
    "h": 275.6
  },
  "luminance": 0.06286
}

Semantic roles & 50–950 ramp

primary
#394087
secondary
#AEA86E
accent
#C657D0
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #394087

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

Preview Lab → · Contrast checker → · Palette generator →

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