#4E5798#4E5798

#4E5798 is a mid, moderate blue. Relative luminance 0.107; OKLCH L 48.0% C 0.105 H 275.8°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#4E5798
RGBrgb(78, 87, 152)
HSLhsl(233, 32%, 45%)
HSVhsv(233, 49%, 60%)
CMYKcmyk(48.7%, 42.8%, 0%, 40.4%)
CIE-LABlab(39.07, 14.94, -36.79)
CIE-LCHlch(39.07, 39.70, 292.10°)
OKLaboklab(48.04% 0.0105 -0.1041)
OKLCHoklch(48.04% 0.105 275.8)
XYZxyz(12.2158, 10.7024, 31.1218)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5798 #988F4E
analogous
#4E7C98 #4E5798 #6A4E98
triadic
#4E5798 #984E57 #57984E
tetradic
#4E5798 #984E7C #988F4E #4E986A
square
#4E5798 #984E7C #988F4E #4E986A
split-complementary
#4E5798 #986A4E #7C984E
monochromatic
#242947 #394070 #4E5798 #6E77B5 #979DCA

Accessibility & contrast

On white

6.69
#4E5798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#4E5798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E5798
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E5798#FFFFFF#000000##FFFFFF
##4E57981.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5F9A
Deuteranopia (green-blind)
#375997
Tritanopia (blue-blind)
#326570
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4e5798;
/* rgb */ color: rgb(78, 87, 152);
/* oklch */ color: oklch(48.0% 0.105 275.8);
Tailwind
colors: {
  custom: {
    50: '#8486b7',
    500: '#4e5798',
    950: '#000000',
  },
}
SCSS
$custom: #4e5798;
$custom-light: #8486b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5798",
  "rgb": {
    "r": 78,
    "g": 87,
    "b": 152
  },
  "hsl": {
    "h": 232.703,
    "s": 32.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48039,
    "c": 0.10465,
    "h": 275.8
  },
  "luminance": 0.10703
}

Semantic roles & 50–950 ramp

primary
#4E5798
secondary
#B6B18C
accent
#BC5FC8
background
#F8F8FB
surface
#EFEFF6
border
#CACAD0
text
#0B0B11
muted
#7C7C80

Preview Lab

Preview with #4E5798

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

Preview Lab → · Contrast checker → · Palette generator →

#4E5798 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva