#4F51E8#4F51E8

#4F51E8 is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 53.0% C 0.222 H 275.2°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#4F51E8
RGBrgb(79, 81, 232)
HSLhsl(239, 77%, 61%)
HSVhsv(239, 66%, 91%)
CMYKcmyk(65.9%, 65.1%, 0%, 9%)
CIE-LABlab(43.32, 45.28, -76.54)
CIE-LCHlch(43.32, 88.93, 300.61°)
OKLaboklab(53% 0.0201 -0.2209)
OKLCHoklch(53% 0.222 275.2)
XYZxyz(20.7276, 13.3715, 77.8169)
Luminance0.1337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F51E8 #E8E64F
analogous
#4F9DE8 #4F51E8 #994FE8
triadic
#4F51E8 #E84F51 #51E84F
tetradic
#4F51E8 #E84F9D #E8E64F #4FE899
square
#4F51E8 #E84F9D #E8E64F #4FE899
split-complementary
#4F51E8 #E8994F #9DE84F
monochromatic
#1618A7 #1D1FDD #4F51E8 #8587EF #BBBCF6

Accessibility & contrast

On white

5.71
#4F51E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#4F51E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F51E8
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F51E8#FFFFFF#000000##FFFFFF
##4F51E81.005.713.675.71
#FFFFFF5.711.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DED
Deuteranopia (green-blind)
#005FE5
Tritanopia (blue-blind)
#007995
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4f51e8;
/* rgb */ color: rgb(79, 81, 232);
/* oklch */ color: oklch(53.0% 0.222 275.2);
Tailwind
colors: {
  custom: {
    50: '#9282f0',
    500: '#4f51e8',
    950: '#000000',
  },
}
SCSS
$custom: #4f51e8;
$custom-light: #9282f0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f51e8",
  "rgb": {
    "r": 79,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 239.216,
    "s": 76.884,
    "l": 60.98
  },
  "oklch": {
    "l": 0.53004,
    "c": 0.22182,
    "h": 275.2
  },
  "luminance": 0.13373
}

Semantic roles & 50–950 ramp

primary
#4F51E8
secondary
#E6E5AD
accent
#D60CD9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #4F51E8

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

Preview Lab → · Contrast checker → · Palette generator →

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