#394798#394798

#394798 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.2% C 0.133 H 272.3°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#394798
RGBrgb(57, 71, 152)
HSLhsl(231, 45%, 41%)
HSVhsv(231, 63%, 60%)
CMYKcmyk(62.5%, 53.3%, 0%, 40.4%)
CIE-LABlab(33.23, 20.72, -46.23)
CIE-LCHlch(33.23, 50.66, 294.14°)
OKLaboklab(43.23% 0.0053 -0.1325)
OKLCHoklch(43.23% 0.133 272.3)
XYZxyz(9.6062, 7.6425, 30.6686)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394798 #988A39
analogous
#397698 #394798 #5A3998
triadic
#394798 #983947 #479839
tetradic
#394798 #983976 #988A39 #39985A
square
#394798 #983976 #988A39 #39985A
split-complementary
#394798 #985A39 #769839
monochromatic
#181D3F #28326B #394798 #5161BE #7D89CE

Accessibility & contrast

On white

8.30
#394798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#394798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #394798
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394798#FFFFFF#000000##FFFFFF
##3947981.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16529B
Deuteranopia (green-blind)
#004A96
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #394798;
/* rgb */ color: rgb(57, 71, 152);
/* oklch */ color: oklch(43.2% 0.133 272.3);
Tailwind
colors: {
  custom: {
    50: '#797ab7',
    500: '#394798',
    950: '#000000',
  },
}
SCSS
$custom: #394798;
$custom-light: #797ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#394798",
  "rgb": {
    "r": 57,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 231.158,
    "s": 45.455,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43227,
    "c": 0.13261,
    "h": 272.3
  },
  "luminance": 0.07643
}

Semantic roles & 50–950 ramp

primary
#394798
secondary
#B8AE75
accent
#C253D5
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0911
muted
#7C7B80

Preview Lab

Preview with #394798

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

Preview Lab → · Contrast checker → · Palette generator →

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