#394498#394498

#394498 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.6% C 0.137 H 273.5°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#394498
RGBrgb(57, 68, 152)
HSLhsl(233, 45%, 41%)
HSVhsv(233, 63%, 60%)
CMYKcmyk(62.5%, 55.3%, 0%, 40.4%)
CIE-LABlab(32.41, 22.71, -47.54)
CIE-LCHlch(32.41, 52.68, 295.53°)
OKLaboklab(42.62% 0.0084 -0.1364)
OKLCHoklch(42.62% 0.137 273.5)
XYZxyz(9.4201, 7.2703, 30.6066)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394498 #988D39
analogous
#397398 #394498 #5D3998
triadic
#394498 #983944 #449839
tetradic
#394498 #983973 #988D39 #39985D
square
#394498 #983973 #988D39 #39985D
split-complementary
#394498 #985D39 #739839
monochromatic
#181C3F #28306B #394498 #515DBE #7D87CE

Accessibility & contrast

On white

8.56
#394498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#394498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #394498
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394498#FFFFFF#000000##FFFFFF
##3944981.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09519B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #394498;
/* rgb */ color: rgb(57, 68, 152);
/* oklch */ color: oklch(42.6% 0.137 273.5);
Tailwind
colors: {
  custom: {
    50: '#7977b7',
    500: '#394498',
    950: '#000000',
  },
}
SCSS
$custom: #394498;
$custom-light: #7977b7;
$custom-dark: #000000;
JSON
{
  "hex": "#394498",
  "rgb": {
    "r": 57,
    "g": 68,
    "b": 152
  },
  "hsl": {
    "h": 233.053,
    "s": 45.455,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42616,
    "c": 0.13666,
    "h": 273.5
  },
  "luminance": 0.07271
}

Semantic roles & 50–950 ramp

primary
#394498
secondary
#B8B075
accent
#C653D5
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #394498

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

Preview Lab → · Contrast checker → · Palette generator →

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