#4E51AF#4E51AF

#4E51AF is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.4% C 0.147 H 278.0°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#4E51AF
RGBrgb(78, 81, 175)
HSLhsl(238, 38%, 50%)
HSVhsv(238, 55%, 69%)
CMYKcmyk(55.4%, 53.7%, 0%, 31.4%)
CIE-LABlab(38.90, 26.30, -50.79)
CIE-LCHlch(38.90, 57.19, 297.38°)
OKLaboklab(48.36% 0.0205 -0.1453)
OKLCHoklch(48.36% 0.147 278)
XYZxyz(13.8197, 10.5988, 41.8667)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51AF #AFAC4E
analogous
#4E82AF #4E51AF #7B4EAF
triadic
#4E51AF #AF4E51 #51AF4E
tetradic
#4E51AF #AF4E82 #AFAC4E #4EAF7B
square
#4E51AF #AF4E82 #AFAC4E #4EAF7B
split-complementary
#4E51AF #AF7B4E #82AF4E
monochromatic
#282A5A #3B3D85 #4E51AF #787AC3 #A2A3D6

Accessibility & contrast

On white

6.73
#4E51AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#4E51AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51AF
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51AF#FFFFFF#000000##FFFFFF
##4E51AF1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A60B2
Deuteranopia (green-blind)
#0458AD
Tritanopia (blue-blind)
#1E6678
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4e51af;
/* rgb */ color: rgb(78, 81, 175);
/* oklch */ color: oklch(48.4% 0.147 278.0);
Tailwind
colors: {
  custom: {
    50: '#8881c7',
    500: '#4e51af',
    950: '#000000',
  },
}
SCSS
$custom: #4e51af;
$custom-light: #8881c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51af",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 238.144,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48364,
    "c": 0.14669,
    "h": 278
  },
  "luminance": 0.106
}

Semantic roles & 50–950 ramp

primary
#4E51AF
secondary
#C3C196
accent
#CB5ACE
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #4E51AF

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

Preview Lab → · Contrast checker → · Palette generator →

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