#4E4788#4E4788

#4E4788 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.7% C 0.104 H 286.1°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#4E4788
RGBrgb(78, 71, 136)
HSLhsl(246, 31%, 41%)
HSVhsv(246, 48%, 53%)
CMYKcmyk(42.6%, 47.8%, 0%, 46.7%)
CIE-LABlab(33.78, 20.19, -35.48)
CIE-LCHlch(33.78, 40.82, 299.64°)
OKLaboklab(43.72% 0.0291 -0.1004)
OKLCHoklch(43.72% 0.104 286.1)
XYZxyz(9.8378, 7.9034, 24.2949)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4788 #818847
analogous
#476088 #4E4788 #6E4788
triadic
#4E4788 #884E47 #47884E
tetradic
#4E4788 #884760 #818847 #47886E
square
#4E4788 #884760 #818847 #47886E
split-complementary
#4E4788 #886E47 #608847
monochromatic
#201D38 #373260 #4E4788 #6860AC #8E88C1

Accessibility & contrast

On white

8.14
#4E4788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4E4788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E4788
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4788#FFFFFF#000000##FFFFFF
##4E47881.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E518A
Deuteranopia (green-blind)
#2D4E87
Tritanopia (blue-blind)
#3D5461
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e4788;
/* rgb */ color: rgb(78, 71, 136);
/* oklch */ color: oklch(43.7% 0.104 286.1);
Tailwind
colors: {
  custom: {
    50: '#837aab',
    500: '#4e4788',
    950: '#000000',
  },
}
SCSS
$custom: #4e4788;
$custom-light: #837aab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4788",
  "rgb": {
    "r": 78,
    "g": 71,
    "b": 136
  },
  "hsl": {
    "h": 246.462,
    "s": 31.401,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43716,
    "c": 0.10449,
    "h": 286.1
  },
  "luminance": 0.07904
}

Semantic roles & 50–950 ramp

primary
#4E4788
secondary
#A8AD7E
accent
#C860BC
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #4E4788

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

Preview Lab → · Contrast checker → · Palette generator →

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