#4D42EB#4D42EB

#4D42EB is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.9% C 0.242 H 276.4°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#4D42EB
RGBrgb(77, 66, 235)
HSLhsl(244, 81%, 59%)
HSVhsv(244, 72%, 92%)
CMYKcmyk(67.2%, 71.9%, 0%, 7.8%)
CIE-LABlab(40.36, 54.45, -83.10)
CIE-LCHlch(40.36, 99.35, 303.24°)
OKLaboklab(50.93% 0.0269 -0.2401)
OKLCHoklch(50.93% 0.242 276.4)
XYZxyz(19.9993, 11.4706, 79.7412)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D42EB #E0EB42
analogous
#428CEB #4D42EB #A142EB
triadic
#4D42EB #EB4D42 #42EB4D
tetradic
#4D42EB #EB428C #E0EB42 #42EBA1
square
#4D42EB #EB428C #E0EB42 #42EBA1
split-complementary
#4D42EB #EBA142 #8CEB42
monochromatic
#1A11A2 #2417D9 #4D42EB #8179F1 #B5B1F7

Accessibility & contrast

On white

6.37
#4D42EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#4D42EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D42EB
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D42EB#FFFFFF#000000##FFFFFF
##4D42EB1.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066F0
Deuteranopia (green-blind)
#0058E8
Tritanopia (blue-blind)
#007293
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4d42eb;
/* rgb */ color: rgb(77, 66, 235);
/* oklch */ color: oklch(50.9% 0.242 276.4);
Tailwind
colors: {
  custom: {
    50: '#9379f3',
    500: '#4d42eb',
    950: '#000000',
  },
}
SCSS
$custom: #4d42eb;
$custom-light: #9379f3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d42eb",
  "rgb": {
    "r": 77,
    "g": 66,
    "b": 235
  },
  "hsl": {
    "h": 243.905,
    "s": 80.861,
    "l": 59.02
  },
  "oklch": {
    "l": 0.50925,
    "c": 0.24162,
    "h": 276.4
  },
  "luminance": 0.11472
}

Semantic roles & 50–950 ramp

primary
#4D42EB
secondary
#E1E6A3
accent
#F731EA
background
#FAF7FF
surface
#F3EDFE
border
#CDC8D6
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #4D42EB

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

Preview Lab → · Contrast checker → · Palette generator →

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