#394098#394098

#394098 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.142 H 275.0°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#394098
RGBrgb(57, 64, 152)
HSLhsl(236, 45%, 41%)
HSVhsv(236, 63%, 60%)
CMYKcmyk(62.5%, 57.9%, 0%, 40.4%)
CIE-LABlab(31.35, 25.35, -49.26)
CIE-LCHlch(31.35, 55.40, 297.23°)
OKLaboklab(41.82% 0.0124 -0.1415)
OKLCHoklch(41.82% 0.142 275)
XYZxyz(9.1864, 6.8029, 30.5287)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394098 #989139
analogous
#396F98 #394098 #613998
triadic
#394098 #983940 #409839
tetradic
#394098 #98396F #989139 #399861
square
#394098 #98396F #989139 #399861
split-complementary
#394098 #986139 #6F9839
monochromatic
#181B3F #282D6B #394098 #5159BE #7D83CE

Accessibility & contrast

On white

8.90
#394098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#394098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #394098
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394098#FFFFFF#000000##FFFFFF
##3940981.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #394098;
/* rgb */ color: rgb(57, 64, 152);
/* oklch */ color: oklch(41.8% 0.142 275.0);
Tailwind
colors: {
  custom: {
    50: '#7a74b7',
    500: '#394098',
    950: '#000000',
  },
}
SCSS
$custom: #394098;
$custom-light: #7a74b7;
$custom-dark: #000000;
JSON
{
  "hex": "#394098",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 152
  },
  "hsl": {
    "h": 235.579,
    "s": 45.455,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41824,
    "c": 0.14204,
    "h": 275
  },
  "luminance": 0.06804
}

Semantic roles & 50–950 ramp

primary
#394098
secondary
#B8B375
accent
#CC53D5
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #394098

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

Preview Lab → · Contrast checker → · Palette generator →

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