#4A51E7#4A51E7

#4A51E7 is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.6% C 0.222 H 273.8°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#4A51E7
RGBrgb(74, 81, 231)
HSLhsl(237, 77%, 60%)
HSVhsv(237, 68%, 91%)
CMYKcmyk(68%, 64.9%, 0%, 9.4%)
CIE-LABlab(42.93, 44.32, -76.63)
CIE-LCHlch(42.93, 88.52, 300.04°)
OKLaboklab(52.61% 0.0145 -0.2213)
OKLCHoklch(52.61% 0.222 273.8)
XYZxyz(20.1855, 13.1083, 77.0522)
Luminance0.1311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A51E7 #E7E04A
analogous
#4A9FE7 #4A51E7 #924AE7
triadic
#4A51E7 #E74A51 #51E74A
tetradic
#4A51E7 #E74A9F #E7E04A #4AE792
square
#4A51E7 #E74A9F #E7E04A #4AE792
split-complementary
#4A51E7 #E7924A #9FE74A
monochromatic
#151CA1 #1D25D7 #4A51E7 #8085EE #B6B9F5

Accessibility & contrast

On white

5.80
#4A51E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#4A51E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A51E7
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A51E7#FFFFFF#000000##FFFFFF
##4A51E71.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEC
Deuteranopia (green-blind)
#005EE4
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4a51e7;
/* rgb */ color: rgb(74, 81, 231);
/* oklch */ color: oklch(52.6% 0.222 273.8);
Tailwind
colors: {
  custom: {
    50: '#9082f0',
    500: '#4a51e7',
    950: '#000000',
  },
}
SCSS
$custom: #4a51e7;
$custom-light: #9082f0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a51e7",
  "rgb": {
    "r": 74,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 237.325,
    "s": 76.585,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52612,
    "c": 0.22177,
    "h": 273.8
  },
  "luminance": 0.1311
}

Semantic roles & 50–950 ramp

primary
#4A51E7
secondary
#E5E2A8
accent
#EB35F3
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #4A51E7

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

Preview Lab → · Contrast checker → · Palette generator →

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