#4F52E5#4F52E5

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

Color values

HEX#4F52E5
RGBrgb(79, 82, 229)
HSLhsl(239, 74%, 60%)
HSVhsv(239, 66%, 90%)
CMYKcmyk(65.5%, 64.2%, 0%, 10.2%)
CIE-LABlab(43.29, 43.71, -74.89)
CIE-LCHlch(43.29, 86.71, 300.27°)
OKLaboklab(52.91% 0.0196 -0.2161)
OKLCHoklch(52.91% 0.217 275.2)
XYZxyz(20.3799, 13.3522, 75.6168)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F52E5 #E5E24F
analogous
#4F9DE5 #4F52E5 #974FE5
triadic
#4F52E5 #E54F52 #52E54F
tetradic
#4F52E5 #E54F9D #E5E24F #4FE597
square
#4F52E5 #E54F9D #E5E24F #4FE597
split-complementary
#4F52E5 #E5974F #9DE54F
monochromatic
#181BA2 #2023D7 #4F52E5 #8486ED #BABBF5

Accessibility & contrast

On white

5.72
#4F52E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4F52E5
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F52E5#FFFFFF#000000##FFFFFF
##4F52E51.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEA
Deuteranopia (green-blind)
#0060E2
Tritanopia (blue-blind)
#007894
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4f52e5;
/* rgb */ color: rgb(79, 82, 229);
/* oklch */ color: oklch(52.9% 0.217 275.2);
Tailwind
colors: {
  custom: {
    50: '#9183ee',
    500: '#4f52e5',
    950: '#000000',
  },
}
SCSS
$custom: #4f52e5;
$custom-light: #9183ee;
$custom-dark: #000000;
JSON
{
  "hex": "#4f52e5",
  "rgb": {
    "r": 79,
    "g": 82,
    "b": 229
  },
  "hsl": {
    "h": 238.8,
    "s": 74.257,
    "l": 60.392
  },
  "oklch": {
    "l": 0.52906,
    "c": 0.21695,
    "h": 275.2
  },
  "luminance": 0.13354
}

Semantic roles & 50–950 ramp

primary
#4F52E5
secondary
#E5E3AB
accent
#D20FD6
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #4F52E5

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

Preview Lab → · Contrast checker → · Palette generator →

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