#4F51E4#4F51E4

#4F51E4 is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.7% C 0.217 H 275.4°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#4F51E4
RGBrgb(79, 81, 228)
HSLhsl(239, 73%, 60%)
HSVhsv(239, 65%, 89%)
CMYKcmyk(65.4%, 64.5%, 0%, 10.6%)
CIE-LABlab(42.98, 43.98, -74.82)
CIE-LCHlch(42.98, 86.79, 300.44°)
OKLaboklab(52.66% 0.0204 -0.2159)
OKLCHoklch(52.66% 0.217 275.4)
XYZxyz(20.1659, 13.1468, 74.8586)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F51E4 #E4E24F
analogous
#4F9BE4 #4F51E4 #984FE4
triadic
#4F51E4 #E44F51 #51E44F
tetradic
#4F51E4 #E44F9B #E4E24F #4FE498
square
#4F51E4 #E44F9B #E4E24F #4FE498
split-complementary
#4F51E4 #E4984F #9BE44F
monochromatic
#191AA0 #2123D5 #4F51E4 #8485EC #B9BAF4

Accessibility & contrast

On white

5.79
#4F51E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#4F51E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F51E4
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F51E4#FFFFFF#000000##FFFFFF
##4F51E41.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE9
Deuteranopia (green-blind)
#005FE1
Tritanopia (blue-blind)
#007793
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4f51e4;
/* rgb */ color: rgb(79, 81, 228);
/* oklch */ color: oklch(52.7% 0.217 275.4);
Tailwind
colors: {
  custom: {
    50: '#9182ee',
    500: '#4f51e4',
    950: '#000000',
  },
}
SCSS
$custom: #4f51e4;
$custom-light: #9182ee;
$custom-dark: #000000;
JSON
{
  "hex": "#4f51e4",
  "rgb": {
    "r": 79,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 239.195,
    "s": 73.399,
    "l": 60.196
  },
  "oklch": {
    "l": 0.52658,
    "c": 0.21683,
    "h": 275.4
  },
  "luminance": 0.13149
}

Semantic roles & 50–950 ramp

primary
#4F51E4
secondary
#E4E3AB
accent
#D310D6
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4F51E4

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

Preview Lab → · Contrast checker → · Palette generator →

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