#4F51EB#4F51EB

#4F51EB is a mid, highly saturated blue. Relative luminance 0.135; OKLCH L 53.3% C 0.226 H 275.0°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#4F51EB
RGBrgb(79, 81, 235)
HSLhsl(239, 80%, 62%)
HSVhsv(239, 66%, 92%)
CMYKcmyk(66.4%, 65.5%, 0%, 7.8%)
CIE-LABlab(43.57, 46.25, -77.82)
CIE-LCHlch(43.57, 90.53, 300.72°)
OKLaboklab(53.26% 0.0198 -0.2247)
OKLCHoklch(53.26% 0.226 275)
XYZxyz(21.1573, 13.5434, 80.0803)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F51EB #EBE94F
analogous
#4F9FEB #4F51EB #9B4FEB
triadic
#4F51EB #EB4F51 #51EB4F
tetradic
#4F51EB #EB4F9F #EBE94F #4FEB9B
square
#4F51EB #EB4F9F #EBE94F #4FEB9B
split-complementary
#4F51EB #EB9B4F #9FEB4F
monochromatic
#1416AC #1A1CE3 #4F51EB #8687F1 #BDBEF7

Accessibility & contrast

On white

5.66
#4F51EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#4F51EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F51EB
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F51EB#FFFFFF#000000##FFFFFF
##4F51EB1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EF0
Deuteranopia (green-blind)
#0060E8
Tritanopia (blue-blind)
#007A97
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4f51eb;
/* rgb */ color: rgb(79, 81, 235);
/* oklch */ color: oklch(53.3% 0.226 275.0);
Tailwind
colors: {
  custom: {
    50: '#9382f3',
    500: '#4f51eb',
    950: '#000000',
  },
}
SCSS
$custom: #4f51eb;
$custom-light: #9382f3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f51eb",
  "rgb": {
    "r": 79,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 239.231,
    "s": 79.592,
    "l": 61.569
  },
  "oklch": {
    "l": 0.53265,
    "c": 0.22553,
    "h": 275
  },
  "luminance": 0.13545
}

Semantic roles & 50–950 ramp

primary
#4F51EB
secondary
#E8E7AE
accent
#D90ADC
background
#F9F8FF
surface
#F2EFFE
border
#CCCAD6
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #4F51EB

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

Preview Lab → · Contrast checker → · Palette generator →

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