#4E51B8#4E51B8

#4E51B8 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.0% C 0.159 H 277.5°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#4E51B8
RGBrgb(78, 81, 184)
HSLhsl(238, 43%, 51%)
HSVhsv(238, 58%, 72%)
CMYKcmyk(57.6%, 56%, 0%, 27.8%)
CIE-LABlab(39.52, 29.28, -55.08)
CIE-LCHlch(39.52, 62.38, 297.99°)
OKLaboklab(49.03% 0.0208 -0.1579)
OKLCHoklch(49.03% 0.159 277.5)
XYZxyz(14.7333, 10.9642, 46.6780)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51B8 #B8B54E
analogous
#4E86B8 #4E51B8 #804EB8
triadic
#4E51B8 #B84E51 #51B84E
tetradic
#4E51B8 #B84E86 #B8B54E #4EB880
square
#4E51B8 #B84E86 #B8B54E #4EB880
split-complementary
#4E51B8 #B8804E #86B84E
monochromatic
#282A64 #393C8F #4E51B8 #7A7CCA #A5A7DB

Accessibility & contrast

On white

6.58
#4E51B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#4E51B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51B8
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51B8#FFFFFF#000000##FFFFFF
##4E51B81.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BC
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#0C697C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4e51b8;
/* rgb */ color: rgb(78, 81, 184);
/* oklch */ color: oklch(49.0% 0.159 277.5);
Tailwind
colors: {
  custom: {
    50: '#8982ce',
    500: '#4e51b8',
    950: '#000000',
  },
}
SCSS
$custom: #4e51b8;
$custom-light: #8982ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51b8",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 184
  },
  "hsl": {
    "h": 238.302,
    "s": 42.742,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49028,
    "c": 0.15927,
    "h": 277.5
  },
  "luminance": 0.10965
}

Semantic roles & 50–950 ramp

primary
#4E51B8
secondary
#C8C79A
accent
#CF55D3
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4E51B8

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

Preview Lab → · Contrast checker → · Palette generator →

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