#4E57B8#4E57B8

#4E57B8 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.2% C 0.151 H 275.5°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#4E57B8
RGBrgb(78, 87, 184)
HSLhsl(235, 43%, 51%)
HSVhsv(235, 58%, 72%)
CMYKcmyk(57.6%, 52.7%, 0%, 27.8%)
CIE-LABlab(41.05, 25.49, -52.61)
CIE-LCHlch(41.05, 58.46, 295.85°)
OKLaboklab(50.17% 0.0146 -0.1506)
OKLCHoklch(50.17% 0.151 275.5)
XYZxyz(15.1990, 11.8957, 46.8333)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E57B8 #B8AF4E
analogous
#4E8CB8 #4E57B8 #7A4EB8
triadic
#4E57B8 #B84E57 #57B84E
tetradic
#4E57B8 #B84E8C #B8AF4E #4EB87A
square
#4E57B8 #B84E8C #B8AF4E #4EB87A
split-complementary
#4E57B8 #B87A4E #8CB84E
monochromatic
#282D64 #39418F #4E57B8 #7A80CA #A5AADB

Accessibility & contrast

On white

6.21
#4E57B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#4E57B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E57B8
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E57B8#FFFFFF#000000##FFFFFF
##4E57B81.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F65BB
Deuteranopia (green-blind)
#025CB6
Tritanopia (blue-blind)
#096D7F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4e57b8;
/* rgb */ color: rgb(78, 87, 184);
/* oklch */ color: oklch(50.2% 0.151 275.5);
Tailwind
colors: {
  custom: {
    50: '#8986ce',
    500: '#4e57b8',
    950: '#000000',
  },
}
SCSS
$custom: #4e57b8;
$custom-light: #8986ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4e57b8",
  "rgb": {
    "r": 78,
    "g": 87,
    "b": 184
  },
  "hsl": {
    "h": 234.906,
    "s": 42.742,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50173,
    "c": 0.15127,
    "h": 275.5
  },
  "luminance": 0.11897
}

Semantic roles & 50–950 ramp

primary
#4E57B8
secondary
#C8C49A
accent
#C855D3
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #4E57B8

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

Preview Lab → · Contrast checker → · Palette generator →

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