#4E5FA6#4E5FA6

#4E5FA6 is a mid, moderate blue. Relative luminance 0.126; OKLCH L 50.6% C 0.115 H 271.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#4E5FA6
RGBrgb(78, 95, 166)
HSLhsl(228, 36%, 48%)
HSVhsv(228, 53%, 65%)
CMYKcmyk(53%, 42.8%, 0%, 34.9%)
CIE-LABlab(42.09, 14.40, -40.35)
CIE-LCHlch(42.09, 42.84, 289.64°)
OKLaboklab(50.6% 0.0033 -0.1145)
OKLCHoklch(50.6% 0.115 271.6)
XYZxyz(14.1148, 12.5563, 37.7488)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5FA6 #A6954E
analogous
#4E8BA6 #4E5FA6 #694EA6
triadic
#4E5FA6 #A64E5F #5FA64E
tetradic
#4E5FA6 #A64E8B #A6954E #4EA669
square
#4E5FA6 #A64E8B #A6954E #4EA669
split-complementary
#4E5FA6 #A6694E #8BA64E
monochromatic
#272F53 #3A477C #4E5FA6 #7482BE #9DA7D1

Accessibility & contrast

On white

5.98
#4E5FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#4E5FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E5FA6
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E5FA6#FFFFFF#000000##FFFFFF
##4E5FA61.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4267A9
Deuteranopia (green-blind)
#3860A4
Tritanopia (blue-blind)
#256E7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4e5fa6;
/* rgb */ color: rgb(78, 95, 166);
/* oklch */ color: oklch(50.6% 0.115 271.6);
Tailwind
colors: {
  custom: {
    50: '#868cc1',
    500: '#4e5fa6',
    950: '#000000',
  },
}
SCSS
$custom: #4e5fa6;
$custom-light: #868cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5fa6",
  "rgb": {
    "r": 78,
    "g": 95,
    "b": 166
  },
  "hsl": {
    "h": 228.409,
    "s": 36.066,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50602,
    "c": 0.11454,
    "h": 271.6
  },
  "luminance": 0.12557
}

Semantic roles & 50–950 ramp

primary
#4E5FA6
secondary
#BEB592
accent
#B65CCC
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0C0C12
muted
#7D7D81

Preview Lab

Preview with #4E5FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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