#394198#394198

#394198 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.141 H 274.6°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#394198
RGBrgb(57, 65, 152)
HSLhsl(235, 45%, 41%)
HSVhsv(235, 63%, 60%)
CMYKcmyk(62.5%, 57.2%, 0%, 40.4%)
CIE-LABlab(31.62, 24.69, -48.83)
CIE-LCHlch(31.62, 54.72, 296.82°)
OKLaboklab(42.02% 0.0114 -0.1402)
OKLCHoklch(42.02% 0.141 274.6)
XYZxyz(9.2433, 6.9167, 30.5476)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394198 #989039
analogous
#397098 #394198 #603998
triadic
#394198 #983941 #419839
tetradic
#394198 #983970 #989039 #399860
square
#394198 #983970 #989039 #399860
split-complementary
#394198 #986039 #709839
monochromatic
#181B3F #282E6B #394198 #515ABE #7D84CE

Accessibility & contrast

On white

8.81
#394198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#394198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #394198
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394198#FFFFFF#000000##FFFFFF
##3941981.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #394198;
/* rgb */ color: rgb(57, 65, 152);
/* oklch */ color: oklch(42.0% 0.141 274.6);
Tailwind
colors: {
  custom: {
    50: '#7975b7',
    500: '#394198',
    950: '#000000',
  },
}
SCSS
$custom: #394198;
$custom-light: #7975b7;
$custom-dark: #000000;
JSON
{
  "hex": "#394198",
  "rgb": {
    "r": 57,
    "g": 65,
    "b": 152
  },
  "hsl": {
    "h": 234.947,
    "s": 45.455,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42019,
    "c": 0.1407,
    "h": 274.6
  },
  "luminance": 0.06917
}

Semantic roles & 50–950 ramp

primary
#394198
secondary
#B8B275
accent
#CA53D5
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #394198

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

Preview Lab → · Contrast checker → · Palette generator →

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