#4D52C5#4D52C5

#4D52C5 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.1% C 0.176 H 276.1°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#4D52C5
RGBrgb(77, 82, 197)
HSLhsl(238, 51%, 54%)
HSVhsv(238, 61%, 77%)
CMYKcmyk(60.9%, 58.4%, 0%, 22.7%)
CIE-LABlab(40.64, 32.81, -60.85)
CIE-LCHlch(40.64, 69.13, 298.33°)
OKLaboklab(50.14% 0.0188 -0.1749)
OKLCHoklch(50.14% 0.176 276.1)
XYZxyz(16.1526, 11.6423, 54.2085)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D52C5 #C5C04D
analogous
#4D8EC5 #4D52C5 #844DC5
triadic
#4D52C5 #C54D52 #52C54D
tetradic
#4D52C5 #C54D8E #C5C04D #4DC584
square
#4D52C5 #C54D8E #C5C04D #4DC584
split-complementary
#4D52C5 #C5844D #8EC54D
monochromatic
#252872 #3439A0 #4D52C5 #7B7FD4 #A9ACE3

Accessibility & contrast

On white

6.31
#4D52C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#4D52C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D52C5
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D52C5#FFFFFF#000000##FFFFFF
##4D52C51.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C9
Deuteranopia (green-blind)
#005BC3
Tritanopia (blue-blind)
#006E83
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4d52c5;
/* rgb */ color: rgb(77, 82, 197);
/* oklch */ color: oklch(50.1% 0.176 276.1);
Tailwind
colors: {
  custom: {
    50: '#8b82d7',
    500: '#4d52c5',
    950: '#000000',
  },
}
SCSS
$custom: #4d52c5;
$custom-light: #8b82d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d52c5",
  "rgb": {
    "r": 77,
    "g": 82,
    "b": 197
  },
  "hsl": {
    "h": 237.5,
    "s": 50.847,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50142,
    "c": 0.17591,
    "h": 276.1
  },
  "luminance": 0.11644
}

Semantic roles & 50–950 ramp

primary
#4D52C5
secondary
#D1CE9D
accent
#D44DDA
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #4D52C5

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

Preview Lab → · Contrast checker → · Palette generator →

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