#4D52C8#4D52C8

#4D52C8 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.4% C 0.180 H 276.0°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#4D52C8
RGBrgb(77, 82, 200)
HSLhsl(238, 53%, 54%)
HSVhsv(238, 62%, 78%)
CMYKcmyk(61.5%, 59%, 0%, 21.6%)
CIE-LABlab(40.87, 33.81, -62.23)
CIE-LCHlch(40.87, 70.82, 298.51°)
OKLaboklab(50.38% 0.0188 -0.1789)
OKLCHoklch(50.38% 0.18 276)
XYZxyz(16.4998, 11.7812, 56.0369)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D52C8 #C8C34D
analogous
#4D90C8 #4D52C8 #864DC8
triadic
#4D52C8 #C84D52 #52C84D
tetradic
#4D52C8 #C84D90 #C8C34D #4DC886
square
#4D52C8 #C84D90 #C8C34D #4DC886
split-complementary
#4D52C8 #C8864D #90C84D
monochromatic
#242876 #3338A5 #4D52C8 #7C7FD6 #ABADE5

Accessibility & contrast

On white

6.26
#4D52C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#4D52C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D52C8
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D52C8#FFFFFF#000000##FFFFFF
##4D52C81.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#005BC6
Tritanopia (blue-blind)
#006F85
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4d52c8;
/* rgb */ color: rgb(77, 82, 200);
/* oklch */ color: oklch(50.4% 0.180 276.0);
Tailwind
colors: {
  custom: {
    50: '#8b82da',
    500: '#4d52c8',
    950: '#000000',
  },
}
SCSS
$custom: #4d52c8;
$custom-light: #8b82da;
$custom-dark: #000000;
JSON
{
  "hex": "#4d52c8",
  "rgb": {
    "r": 77,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 237.561,
    "s": 52.79,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50379,
    "c": 0.17993,
    "h": 276
  },
  "luminance": 0.11782
}

Semantic roles & 50–950 ramp

primary
#4D52C8
secondary
#D2D09E
accent
#D64CDC
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4D52C8

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

Preview Lab → · Contrast checker → · Palette generator →

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