#4A51E5#4A51E5

#4A51E5 is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 52.4% C 0.219 H 273.8°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#4A51E5
RGBrgb(74, 81, 229)
HSLhsl(237, 75%, 59%)
HSVhsv(237, 68%, 90%)
CMYKcmyk(67.7%, 64.6%, 0%, 10.2%)
CIE-LABlab(42.76, 43.66, -75.77)
CIE-LCHlch(42.76, 87.45, 299.95°)
OKLaboklab(52.44% 0.0147 -0.2188)
OKLCHoklch(52.44% 0.219 273.8)
XYZxyz(19.9046, 12.9960, 75.5731)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A51E5 #E5DE4A
analogous
#4A9FE5 #4A51E5 #904AE5
triadic
#4A51E5 #E54A51 #51E54A
tetradic
#4A51E5 #E54A9F #E5DE4A #4AE590
square
#4A51E5 #E54A9F #E5DE4A #4AE590
split-complementary
#4A51E5 #E5904A #9FE54A
monochromatic
#171D9E #1E27D3 #4A51E5 #8084ED #B5B8F4

Accessibility & contrast

On white

5.83
#4A51E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#4A51E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A51E5
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A51E5#FFFFFF#000000##FFFFFF
##4A51E51.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEA
Deuteranopia (green-blind)
#005EE2
Tritanopia (blue-blind)
#007894
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4a51e5;
/* rgb */ color: rgb(74, 81, 229);
/* oklch */ color: oklch(52.4% 0.219 273.8);
Tailwind
colors: {
  custom: {
    50: '#8f82ee',
    500: '#4a51e5',
    950: '#000000',
  },
}
SCSS
$custom: #4a51e5;
$custom-light: #8f82ee;
$custom-dark: #000000;
JSON
{
  "hex": "#4a51e5",
  "rgb": {
    "r": 74,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 237.29,
    "s": 74.879,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52437,
    "c": 0.21927,
    "h": 273.8
  },
  "luminance": 0.12998
}

Semantic roles & 50–950 ramp

primary
#4A51E5
secondary
#E4E1A7
accent
#E936F1
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #4A51E5

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

Preview Lab → · Contrast checker → · Palette generator →

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