#394796#394796

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

Color values

HEX#394796
RGBrgb(57, 71, 150)
HSLhsl(231, 45%, 41%)
HSVhsv(231, 62%, 59%)
CMYKcmyk(62%, 52.7%, 0%, 41.2%)
CIE-LABlab(33.09, 20.00, -45.24)
CIE-LCHlch(33.09, 49.46, 293.85°)
OKLaboklab(43.08% 0.0051 -0.1296)
OKLCHoklch(43.08% 0.13 272.3)
XYZxyz(9.4438, 7.5776, 29.8132)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394796 #968839
analogous
#397596 #394796 #593996
triadic
#394796 #963947 #479639
tetradic
#394796 #963975 #968839 #399659
square
#394796 #963975 #968839 #399659
split-complementary
#394796 #965939 #759639
monochromatic
#171D3D #28326A #394796 #5060BC #7C88CD

Accessibility & contrast

On white

8.35
#394796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#394796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #394796
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394796#FFFFFF#000000##FFFFFF
##3947961.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5299
Deuteranopia (green-blind)
#004A94
Tritanopia (blue-blind)
#005967
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #394796;
/* rgb */ color: rgb(57, 71, 150);
/* oklch */ color: oklch(43.1% 0.130 272.3);
Tailwind
colors: {
  custom: {
    50: '#797ab5',
    500: '#394796',
    950: '#000000',
  },
}
SCSS
$custom: #394796;
$custom-light: #797ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#394796",
  "rgb": {
    "r": 57,
    "g": 71,
    "b": 150
  },
  "hsl": {
    "h": 230.968,
    "s": 44.928,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43077,
    "c": 0.12969,
    "h": 272.3
  },
  "luminance": 0.07578
}

Semantic roles & 50–950 ramp

primary
#394796
secondary
#B7AD74
accent
#C153D5
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0911
muted
#7C7B80

Preview Lab

Preview with #394796

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

Preview Lab → · Contrast checker → · Palette generator →

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