#4D52D9#4D52D9

#4D52D9 is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 51.8% C 0.202 H 275.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#4D52D9
RGBrgb(77, 82, 217)
HSLhsl(238, 65%, 58%)
HSVhsv(238, 65%, 85%)
CMYKcmyk(64.5%, 62.2%, 0%, 14.9%)
CIE-LABlab(42.19, 39.48, -69.87)
CIE-LCHlch(42.19, 80.25, 299.47°)
OKLaboklab(51.76% 0.0182 -0.2014)
OKLCHoklch(51.76% 0.202 275.2)
XYZxyz(18.5981, 12.6205, 67.0881)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D52D9 #D9D44D
analogous
#4D98D9 #4D52D9 #8E4DD9
triadic
#4D52D9 #D94D52 #52D94D
tetradic
#4D52D9 #D94D98 #D9D44D #4DD98E
square
#4D52D9 #D94D98 #D9D44D #4DD98E
split-complementary
#4D52D9 #D98E4D #98D94D
monochromatic
#1E228D #292EC0 #4D52D9 #7F83E4 #B2B4EF

Accessibility & contrast

On white

5.96
#4D52D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#4D52D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D52D9
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D52D9#FFFFFF#000000##FFFFFF
##4D52D91.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADD
Deuteranopia (green-blind)
#005DD6
Tritanopia (blue-blind)
#00748E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4d52d9;
/* rgb */ color: rgb(77, 82, 217);
/* oklch */ color: oklch(51.8% 0.202 275.2);
Tailwind
colors: {
  custom: {
    50: '#8e83e6',
    500: '#4d52d9',
    950: '#000000',
  },
}
SCSS
$custom: #4d52d9;
$custom-light: #8e83e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d52d9",
  "rgb": {
    "r": 77,
    "g": 82,
    "b": 217
  },
  "hsl": {
    "h": 237.857,
    "s": 64.815,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51763,
    "c": 0.2022,
    "h": 275.2
  },
  "luminance": 0.12622
}

Semantic roles & 50–950 ramp

primary
#4D52D9
secondary
#DDDBA5
accent
#E240E8
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4D52D9

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

Preview Lab → · Contrast checker → · Palette generator →

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