#4D52D5#4D52D5

#4D52D5 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.4% C 0.197 H 275.3°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#4D52D5
RGBrgb(77, 82, 213)
HSLhsl(238, 62%, 57%)
HSVhsv(238, 64%, 84%)
CMYKcmyk(63.8%, 61.5%, 0%, 16.5%)
CIE-LABlab(41.87, 38.15, -68.09)
CIE-LCHlch(41.87, 78.05, 299.26°)
OKLaboklab(51.43% 0.0184 -0.1962)
OKLCHoklch(51.43% 0.197 275.3)
XYZxyz(18.0842, 12.4149, 64.3812)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D52D5 #D5D04D
analogous
#4D96D5 #4D52D5 #8C4DD5
triadic
#4D52D5 #D54D52 #52D54D
tetradic
#4D52D5 #D54D96 #D5D04D #4DD58C
square
#4D52D5 #D54D96 #D5D04D #4DD58C
split-complementary
#4D52D5 #D58C4D #96D54D
monochromatic
#202488 #2C31B9 #4D52D5 #7F82E1 #B0B2EC

Accessibility & contrast

On white

6.03
#4D52D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#4D52D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D52D5
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D52D5#FFFFFF#000000##FFFFFF
##4D52D51.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D9
Deuteranopia (green-blind)
#005DD2
Tritanopia (blue-blind)
#00738C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4d52d5;
/* rgb */ color: rgb(77, 82, 213);
/* oklch */ color: oklch(51.4% 0.197 275.3);
Tailwind
colors: {
  custom: {
    50: '#8d83e3',
    500: '#4d52d5',
    950: '#000000',
  },
}
SCSS
$custom: #4d52d5;
$custom-light: #8d83e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d52d5",
  "rgb": {
    "r": 77,
    "g": 82,
    "b": 213
  },
  "hsl": {
    "h": 237.794,
    "s": 61.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51431,
    "c": 0.19704,
    "h": 275.3
  },
  "luminance": 0.12416
}

Semantic roles & 50–950 ramp

primary
#4D52D5
secondary
#DBD9A3
accent
#DF43E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4D52D5

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

Preview Lab → · Contrast checker → · Palette generator →

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