#4E54A2#4E54A2

#4E54A2 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.1% C 0.124 H 277.4°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#4E54A2
RGBrgb(78, 84, 162)
HSLhsl(236, 35%, 47%)
HSVhsv(236, 52%, 64%)
CMYKcmyk(51.9%, 48.1%, 0%, 36.5%)
CIE-LABlab(38.84, 20.11, -43.15)
CIE-LCHlch(38.84, 47.60, 294.98°)
OKLaboklab(48.05% 0.0158 -0.1228)
OKLCHoklch(48.05% 0.124 277.4)
XYZxyz(12.8318, 10.5682, 35.5391)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E54A2 #A29C4E
analogous
#4E7EA2 #4E54A2 #724EA2
triadic
#4E54A2 #A24E54 #54A24E
tetradic
#4E54A2 #A24E7E #A29C4E #4EA272
square
#4E54A2 #A24E7E #A29C4E #4EA272
split-complementary
#4E54A2 #A2724E #7EA24E
monochromatic
#26294F #3A3F79 #4E54A2 #7277BB #9B9FCF

Accessibility & contrast

On white

6.74
#4E54A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#4E54A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E54A2
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E54A2#FFFFFF#000000##FFFFFF
##4E54A21.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315FA5
Deuteranopia (green-blind)
#2958A0
Tritanopia (blue-blind)
#2B6573
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4e54a2;
/* rgb */ color: rgb(78, 84, 162);
/* oklch */ color: oklch(48.1% 0.124 277.4);
Tailwind
colors: {
  custom: {
    50: '#8584be',
    500: '#4e54a2',
    950: '#000000',
  },
}
SCSS
$custom: #4e54a2;
$custom-light: #8584be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e54a2",
  "rgb": {
    "r": 78,
    "g": 84,
    "b": 162
  },
  "hsl": {
    "h": 235.714,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.48054,
    "c": 0.1238,
    "h": 277.4
  },
  "luminance": 0.10569
}

Semantic roles & 50–950 ramp

primary
#4E54A2
secondary
#BCB990
accent
#C35DCB
background
#F8F8FB
surface
#F0EFF7
border
#CBCAD0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #4E54A2

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

Preview Lab → · Contrast checker → · Palette generator →

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