#4F58E6#4F58E6

#4F58E6 is a mid, highly saturated blue. Relative luminance 0.144; OKLCH L 54.0% C 0.211 H 274.1°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#4F58E6
RGBrgb(79, 88, 230)
HSLhsl(236, 75%, 61%)
HSVhsv(236, 66%, 90%)
CMYKcmyk(65.7%, 61.7%, 0%, 9.8%)
CIE-LABlab(44.73, 40.45, -73.09)
CIE-LCHlch(44.73, 83.54, 298.96°)
OKLaboklab(53.99% 0.015 -0.2108)
OKLCHoklch(53.99% 0.211 274.1)
XYZxyz(20.9924, 14.3530, 76.5117)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F58E6 #E6DD4F
analogous
#4FA3E6 #4F58E6 #914FE6
triadic
#4F58E6 #E64F58 #58E64F
tetradic
#4F58E6 #E64FA3 #E6DD4F #4FE691
square
#4F58E6 #E64FA3 #E6DD4F #4FE691
split-complementary
#4F58E6 #E6914F #A3E64F
monochromatic
#1720A3 #1F2AD9 #4F58E6 #858BEE #BABEF5

Accessibility & contrast

On white

5.42
#4F58E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#4F58E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F58E6
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F58E6#FFFFFF#000000##FFFFFF
##4F58E61.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EB
Deuteranopia (green-blind)
#0063E3
Tritanopia (blue-blind)
#007C97
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4f58e6;
/* rgb */ color: rgb(79, 88, 230);
/* oklch */ color: oklch(54.0% 0.211 274.1);
Tailwind
colors: {
  custom: {
    50: '#9187ef',
    500: '#4f58e6',
    950: '#000000',
  },
}
SCSS
$custom: #4f58e6;
$custom-light: #9187ef;
$custom-dark: #000000;
JSON
{
  "hex": "#4f58e6",
  "rgb": {
    "r": 79,
    "g": 88,
    "b": 230
  },
  "hsl": {
    "h": 236.424,
    "s": 75.124,
    "l": 60.588
  },
  "oklch": {
    "l": 0.53989,
    "c": 0.2113,
    "h": 274.1
  },
  "luminance": 0.14355
}

Semantic roles & 50–950 ramp

primary
#4F58E6
secondary
#E5E2AC
accent
#CB0ED7
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #4F58E6

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

Preview Lab → · Contrast checker → · Palette generator →

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