#4F51E7#4F51E7

#4F51E7 is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 52.9% C 0.221 H 275.2°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#4F51E7
RGBrgb(79, 81, 231)
HSLhsl(239, 76%, 61%)
HSVhsv(239, 66%, 91%)
CMYKcmyk(65.8%, 64.9%, 0%, 9.4%)
CIE-LABlab(43.23, 44.95, -76.11)
CIE-LCHlch(43.23, 88.40, 300.57°)
OKLaboklab(52.92% 0.0202 -0.2196)
OKLCHoklch(52.92% 0.221 275.2)
XYZxyz(20.5859, 13.3148, 77.0710)
Luminance0.1332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F51E7 #E7E54F
analogous
#4F9DE7 #4F51E7 #994FE7
triadic
#4F51E7 #E74F51 #51E74F
tetradic
#4F51E7 #E74F9D #E7E54F #4FE799
square
#4F51E7 #E74F9D #E7E54F #4FE799
split-complementary
#4F51E7 #E7994F #9DE74F
monochromatic
#1718A5 #1E20DB #4F51E7 #8586EE #BBBBF6

Accessibility & contrast

On white

5.73
#4F51E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#4F51E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F51E7
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F51E7#FFFFFF#000000##FFFFFF
##4F51E71.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f51e7;
/* rgb */ color: rgb(79, 81, 231);
/* oklch */ color: oklch(52.9% 0.221 275.2);
Tailwind
colors: {
  custom: {
    50: '#9282f0',
    500: '#4f51e7',
    950: '#000000',
  },
}
SCSS
$custom: #4f51e7;
$custom-light: #9282f0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f51e7",
  "rgb": {
    "r": 79,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 239.211,
    "s": 76,
    "l": 60.784
  },
  "oklch": {
    "l": 0.52917,
    "c": 0.22057,
    "h": 275.2
  },
  "luminance": 0.13317
}

Semantic roles & 50–950 ramp

primary
#4F51E7
secondary
#E6E5AC
accent
#D60DD8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #4F51E7

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

Preview Lab → · Contrast checker → · Palette generator →

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