#4D42D5#4D42D5

#4D42D5 is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 48.9% C 0.215 H 278.2°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#4D42D5
RGBrgb(77, 66, 213)
HSLhsl(244, 64%, 55%)
HSVhsv(244, 69%, 84%)
CMYKcmyk(63.8%, 69%, 0%, 16.5%)
CIE-LABlab(38.33, 47.59, -73.88)
CIE-LCHlch(38.33, 87.88, 302.79°)
OKLaboklab(48.86% 0.0306 -0.2132)
OKLCHoklch(48.86% 0.215 278.2)
XYZxyz(17.0152, 10.2769, 64.0249)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D42D5 #CAD542
analogous
#4280D5 #4D42D5 #9742D5
triadic
#4D42D5 #D54D42 #42D54D
tetradic
#4D42D5 #D54280 #CAD542 #42D597
square
#4D42D5 #D54280 #CAD542 #42D597
split-complementary
#4D42D5 #D59742 #80D542
monochromatic
#241C80 #3228B2 #4D42D5 #7C74E0 #ABA6EB

Accessibility & contrast

On white

6.87
#4D42D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#4D42D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D42D5
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D42D5#FFFFFF#000000##FFFFFF
##4D42D51.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D9
Deuteranopia (green-blind)
#0054D2
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4d42d5;
/* rgb */ color: rgb(77, 66, 213);
/* oklch */ color: oklch(48.9% 0.215 278.2);
Tailwind
colors: {
  custom: {
    50: '#8f78e3',
    500: '#4d42d5',
    950: '#000000',
  },
}
SCSS
$custom: #4d42d5;
$custom-light: #8f78e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d42d5",
  "rgb": {
    "r": 77,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 244.49,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.48864,
    "c": 0.21535,
    "h": 278.2
  },
  "luminance": 0.10278
}

Semantic roles & 50–950 ramp

primary
#4D42D5
secondary
#D4D89A
accent
#E741DA
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4D42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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