#4E51AC#4E51AC

#4E51AC is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.1% C 0.142 H 278.2°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#4E51AC
RGBrgb(78, 81, 172)
HSLhsl(238, 38%, 49%)
HSVhsv(238, 55%, 67%)
CMYKcmyk(54.7%, 52.9%, 0%, 32.5%)
CIE-LABlab(38.69, 25.31, -49.33)
CIE-LCHlch(38.69, 55.45, 297.16°)
OKLaboklab(48.15% 0.0203 -0.141)
OKLCHoklch(48.15% 0.142 278.2)
XYZxyz(13.5284, 10.4822, 40.3321)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51AC #ACA94E
analogous
#4E80AC #4E51AC #7A4EAC
triadic
#4E51AC #AC4E51 #51AC4E
tetradic
#4E51AC #AC4E80 #ACA94E #4EAC7A
square
#4E51AC #AC4E80 #ACA94E #4EAC7A
split-complementary
#4E51AC #AC7A4E #80AC4E
monochromatic
#282958 #3B3D82 #4E51AC #7679C1 #A0A2D4

Accessibility & contrast

On white

6.78
#4E51AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#4E51AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51AC
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51AC#FFFFFF#000000##FFFFFF
##4E51AC1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5FAF
Deuteranopia (green-blind)
#0F57AA
Tritanopia (blue-blind)
#216676
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4e51ac;
/* rgb */ color: rgb(78, 81, 172);
/* oklch */ color: oklch(48.1% 0.142 278.2);
Tailwind
colors: {
  custom: {
    50: '#8781c5',
    500: '#4e51ac',
    950: '#000000',
  },
}
SCSS
$custom: #4e51ac;
$custom-light: #8781c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51ac",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 172
  },
  "hsl": {
    "h": 238.085,
    "s": 37.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.48148,
    "c": 0.14245,
    "h": 278.2
  },
  "luminance": 0.10483
}

Semantic roles & 50–950 ramp

primary
#4E51AC
secondary
#C1C095
accent
#CA5ACE
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #4E51AC

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

Preview Lab → · Contrast checker → · Palette generator →

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