#4D42E2#4D42E2

#4D42E2 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.1% C 0.231 H 277.1°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#4D42E2
RGBrgb(77, 66, 226)
HSLhsl(244, 73%, 57%)
HSVhsv(244, 71%, 89%)
CMYKcmyk(65.9%, 70.8%, 0%, 11.4%)
CIE-LABlab(39.52, 51.66, -79.38)
CIE-LCHlch(39.52, 94.71, 303.06°)
OKLaboklab(50.07% 0.0285 -0.2292)
OKLCHoklch(50.07% 0.231 277.1)
XYZxyz(18.7318, 10.9636, 73.0658)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D42E2 #D7E242
analogous
#4287E2 #4D42E2 #9D42E2
triadic
#4D42E2 #E24D42 #42E24D
tetradic
#4D42E2 #E24287 #D7E242 #42E29D
square
#4D42E2 #E24287 #D7E242 #42E29D
split-complementary
#4D42E2 #E29D42 #87E242
monochromatic
#1F1793 #2A1FC8 #4D42E2 #7F77EA #B1ACF2

Accessibility & contrast

On white

6.58
#4D42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#4D42E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D42E2
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D42E2#FFFFFF#000000##FFFFFF
##4D42E21.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E7
Deuteranopia (green-blind)
#0056DF
Tritanopia (blue-blind)
#006E8E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4d42e2;
/* rgb */ color: rgb(77, 66, 226);
/* oklch */ color: oklch(50.1% 0.231 277.1);
Tailwind
colors: {
  custom: {
    50: '#9178ec',
    500: '#4d42e2',
    950: '#000000',
  },
}
SCSS
$custom: #4d42e2;
$custom-light: #9178ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4d42e2",
  "rgb": {
    "r": 77,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 244.125,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.50071,
    "c": 0.23101,
    "h": 277.1
  },
  "luminance": 0.10965
}

Semantic roles & 50–950 ramp

primary
#4D42E2
secondary
#DCE09F
accent
#F038E3
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4D42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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