#4E5FAF#4E5FAF

#4E5FAF is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.2% C 0.128 H 272.1°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#4E5FAF
RGBrgb(78, 95, 175)
HSLhsl(229, 38%, 50%)
HSVhsv(229, 55%, 69%)
CMYKcmyk(55.4%, 45.7%, 0%, 31.4%)
CIE-LABlab(42.61, 17.39, -44.83)
CIE-LCHlch(42.61, 48.08, 291.20°)
OKLaboklab(51.17% 0.0048 -0.1276)
OKLCHoklch(51.17% 0.128 272.1)
XYZxyz(14.9694, 12.8982, 42.2499)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5FAF #AF9E4E
analogous
#4E8FAF #4E5FAF #6E4EAF
triadic
#4E5FAF #AF4E5F #5FAF4E
tetradic
#4E5FAF #AF4E8F #AF9E4E #4EAF6E
square
#4E5FAF #AF4E8F #AF9E4E #4EAF6E
split-complementary
#4E5FAF #AF6E4E #8FAF4E
monochromatic
#28315A #3B4885 #4E5FAF #7885C3 #A2ABD6

Accessibility & contrast

On white

5.87
#4E5FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#4E5FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E5FAF
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E5FAF#FFFFFF#000000##FFFFFF
##4E5FAF1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B69B2
Deuteranopia (green-blind)
#2F61AD
Tritanopia (blue-blind)
#1A717E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4e5faf;
/* rgb */ color: rgb(78, 95, 175);
/* oklch */ color: oklch(51.2% 0.128 272.1);
Tailwind
colors: {
  custom: {
    50: '#878cc7',
    500: '#4e5faf',
    950: '#000000',
  },
}
SCSS
$custom: #4e5faf;
$custom-light: #878cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5faf",
  "rgb": {
    "r": 78,
    "g": 95,
    "b": 175
  },
  "hsl": {
    "h": 229.485,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5117,
    "c": 0.1277,
    "h": 272.1
  },
  "luminance": 0.12899
}

Semantic roles & 50–950 ramp

primary
#4E5FAF
secondary
#C3BB96
accent
#BA5ACE
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #4E5FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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