#4E5FAC#4E5FAC

#4E5FAC is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.0% C 0.123 H 272.0°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#4E5FAC
RGBrgb(78, 95, 172)
HSLhsl(229, 38%, 49%)
HSVhsv(229, 55%, 67%)
CMYKcmyk(54.7%, 44.8%, 0%, 32.5%)
CIE-LABlab(42.43, 16.39, -43.34)
CIE-LCHlch(42.43, 46.34, 290.71°)
OKLaboklab(50.98% 0.0043 -0.1233)
OKLCHoklch(50.98% 0.123 272)
XYZxyz(14.6781, 12.7817, 40.7154)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5FAC #AC9B4E
analogous
#4E8EAC #4E5FAC #6C4EAC
triadic
#4E5FAC #AC4E5F #5FAC4E
tetradic
#4E5FAC #AC4E8E #AC9B4E #4EAC6C
square
#4E5FAC #AC4E8E #AC9B4E #4EAC6C
split-complementary
#4E5FAC #AC6C4E #8EAC4E
monochromatic
#283058 #3B4882 #4E5FAC #7684C1 #A0AAD4

Accessibility & contrast

On white

5.90
#4E5FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#4E5FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E5FAC
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E5FAC#FFFFFF#000000##FFFFFF
##4E5FAC1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E68AF
Deuteranopia (green-blind)
#3260AA
Tritanopia (blue-blind)
#1E707D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4e5fac;
/* rgb */ color: rgb(78, 95, 172);
/* oklch */ color: oklch(51.0% 0.123 272.0);
Tailwind
colors: {
  custom: {
    50: '#868cc5',
    500: '#4e5fac',
    950: '#000000',
  },
}
SCSS
$custom: #4e5fac;
$custom-light: #868cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5fac",
  "rgb": {
    "r": 78,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 229.149,
    "s": 37.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50978,
    "c": 0.12334,
    "h": 272
  },
  "luminance": 0.12783
}

Semantic roles & 50–950 ramp

primary
#4E5FAC
secondary
#C1B995
accent
#B95ACE
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #4E5FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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