#394397#394397

#394397 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.3% C 0.137 H 273.9°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#394397
RGBrgb(57, 67, 151)
HSLhsl(234, 45%, 41%)
HSVhsv(234, 62%, 59%)
CMYKcmyk(62.3%, 55.6%, 0%, 40.8%)
CIE-LABlab(32.07, 23.01, -47.48)
CIE-LCHlch(32.07, 52.76, 295.86°)
OKLaboklab(42.34% 0.0093 -0.1362)
OKLCHoklch(42.34% 0.137 273.9)
XYZxyz(9.2786, 7.1178, 30.1571)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394397 #978D39
analogous
#397297 #394397 #5E3997
triadic
#394397 #973943 #439739
tetradic
#394397 #973972 #978D39 #39975E
square
#394397 #973972 #978D39 #39975E
split-complementary
#394397 #975E39 #729739
monochromatic
#171C3E #282F6B #394397 #505CBD #7D85CE

Accessibility & contrast

On white

8.66
#394397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#394397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #394397
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394397#FFFFFF#000000##FFFFFF
##3943971.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06509A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #394397;
/* rgb */ color: rgb(57, 67, 151);
/* oklch */ color: oklch(42.3% 0.137 273.9);
Tailwind
colors: {
  custom: {
    50: '#7977b6',
    500: '#394397',
    950: '#000000',
  },
}
SCSS
$custom: #394397;
$custom-light: #7977b6;
$custom-dark: #000000;
JSON
{
  "hex": "#394397",
  "rgb": {
    "r": 57,
    "g": 67,
    "b": 151
  },
  "hsl": {
    "h": 233.617,
    "s": 45.192,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42338,
    "c": 0.13657,
    "h": 273.9
  },
  "luminance": 0.07119
}

Semantic roles & 50–950 ramp

primary
#394397
secondary
#B7B075
accent
#C753D5
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #394397

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

Preview Lab → · Contrast checker → · Palette generator →

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