#4E5FAB#4E5FAB

#4E5FAB is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.9% C 0.122 H 271.9°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#4E5FAB
RGBrgb(78, 95, 171)
HSLhsl(229, 37%, 49%)
HSVhsv(229, 54%, 67%)
CMYKcmyk(54.4%, 44.4%, 0%, 32.9%)
CIE-LABlab(42.37, 16.06, -42.85)
CIE-LCHlch(42.37, 45.76, 290.55°)
OKLaboklab(50.91% 0.0041 -0.1218)
OKLCHoklch(50.91% 0.122 271.9)
XYZxyz(14.5824, 12.7434, 40.2115)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5FAB #AB9A4E
analogous
#4E8EAB #4E5FAB #6C4EAB
triadic
#4E5FAB #AB4E5F #5FAB4E
tetradic
#4E5FAB #AB4E8E #AB9A4E #4EAB6C
square
#4E5FAB #AB4E8E #AB9A4E #4EAB6C
split-complementary
#4E5FAB #AB6C4E #8EAB4E
monochromatic
#283057 #3B4881 #4E5FAB #7683C0 #A0A9D4

Accessibility & contrast

On white

5.92
#4E5FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#4E5FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E5FAB
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E5FAB#FFFFFF#000000##FFFFFF
##4E5FAB1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E68AE
Deuteranopia (green-blind)
#3360A9
Tritanopia (blue-blind)
#1F707C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4e5fab;
/* rgb */ color: rgb(78, 95, 171);
/* oklch */ color: oklch(50.9% 0.122 271.9);
Tailwind
colors: {
  custom: {
    50: '#868cc4',
    500: '#4e5fab',
    950: '#000000',
  },
}
SCSS
$custom: #4e5fab;
$custom-light: #868cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5fab",
  "rgb": {
    "r": 78,
    "g": 95,
    "b": 171
  },
  "hsl": {
    "h": 229.032,
    "s": 37.349,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50914,
    "c": 0.12187,
    "h": 271.9
  },
  "luminance": 0.12744
}

Semantic roles & 50–950 ramp

primary
#4E5FAB
secondary
#C1B894
accent
#B85ACD
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #4E5FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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