#394298#394298

#394298 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.2% C 0.139 H 274.3°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#394298
RGBrgb(57, 66, 152)
HSLhsl(234, 45%, 41%)
HSVhsv(234, 63%, 60%)
CMYKcmyk(62.5%, 56.6%, 0%, 40.4%)
CIE-LABlab(31.88, 24.03, -48.40)
CIE-LCHlch(31.88, 54.04, 296.40°)
OKLaboklab(42.22% 0.0104 -0.139)
OKLCHoklch(42.22% 0.139 274.3)
XYZxyz(9.3012, 7.0325, 30.5669)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394298 #988F39
analogous
#397198 #394298 #5F3998
triadic
#394298 #983942 #429839
tetradic
#394298 #983971 #988F39 #39985F
square
#394298 #983971 #988F39 #39985F
split-complementary
#394298 #985F39 #719839
monochromatic
#181B3F #282F6B #394298 #515BBE #7D85CE

Accessibility & contrast

On white

8.73
#394298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#394298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #394298
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394298#FFFFFF#000000##FFFFFF
##3942981.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #394298;
/* rgb */ color: rgb(57, 66, 152);
/* oklch */ color: oklch(42.2% 0.139 274.3);
Tailwind
colors: {
  custom: {
    50: '#7976b7',
    500: '#394298',
    950: '#000000',
  },
}
SCSS
$custom: #394298;
$custom-light: #7976b7;
$custom-dark: #000000;
JSON
{
  "hex": "#394298",
  "rgb": {
    "r": 57,
    "g": 66,
    "b": 152
  },
  "hsl": {
    "h": 234.316,
    "s": 45.455,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42217,
    "c": 0.13936,
    "h": 274.3
  },
  "luminance": 0.07033
}

Semantic roles & 50–950 ramp

primary
#394298
secondary
#B8B175
accent
#C953D5
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #394298

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

Preview Lab → · Contrast checker → · Palette generator →

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