#4E54B9#4E54B9

#4E54B9 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.7% C 0.157 H 276.5°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#4E54B9
RGBrgb(78, 84, 185)
HSLhsl(237, 43%, 52%)
HSVhsv(237, 58%, 73%)
CMYKcmyk(57.8%, 54.6%, 0%, 27.5%)
CIE-LABlab(40.35, 27.72, -54.33)
CIE-LCHlch(40.35, 60.99, 297.03°)
OKLaboklab(49.67% 0.0178 -0.1557)
OKLCHoklch(49.67% 0.157 276.5)
XYZxyz(15.0664, 11.4621, 47.3080)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E54B9 #B9B34E
analogous
#4E8AB9 #4E54B9 #7E4EB9
triadic
#4E54B9 #B94E54 #54B94E
tetradic
#4E54B9 #B94E8A #B9B34E #4EB97E
square
#4E54B9 #B94E8A #B9B34E #4EB97E
split-complementary
#4E54B9 #B97E4E #8AB94E
monochromatic
#282B65 #393E91 #4E54B9 #7A7ECA #A6A9DC

Accessibility & contrast

On white

6.38
#4E54B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#4E54B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E54B9
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E54B9#FFFFFF#000000##FFFFFF
##4E54B91.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1164BC
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#076B7E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4e54b9;
/* rgb */ color: rgb(78, 84, 185);
/* oklch */ color: oklch(49.7% 0.157 276.5);
Tailwind
colors: {
  custom: {
    50: '#8984cf',
    500: '#4e54b9',
    950: '#000000',
  },
}
SCSS
$custom: #4e54b9;
$custom-light: #8984cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e54b9",
  "rgb": {
    "r": 78,
    "g": 84,
    "b": 185
  },
  "hsl": {
    "h": 236.636,
    "s": 43.32,
    "l": 51.569
  },
  "oklch": {
    "l": 0.49668,
    "c": 0.15667,
    "h": 276.5
  },
  "luminance": 0.11463
}

Semantic roles & 50–950 ramp

primary
#4E54B9
secondary
#C9C69A
accent
#CC55D3
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4E54B9

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

Preview Lab → · Contrast checker → · Palette generator →

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