#4D52B2#4D52B2

#4D52B2 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.7% C 0.150 H 277.0°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#4D52B2
RGBrgb(77, 82, 178)
HSLhsl(237, 40%, 50%)
HSVhsv(237, 57%, 70%)
CMYKcmyk(56.7%, 53.9%, 0%, 30.2%)
CIE-LABlab(39.29, 26.46, -51.93)
CIE-LCHlch(39.29, 58.28, 297.00°)
OKLaboklab(48.7% 0.0184 -0.1487)
OKLCHoklch(48.7% 0.15 277)
XYZxyz(14.1112, 10.8257, 43.4568)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D52B2 #B2AD4D
analogous
#4D84B2 #4D52B2 #7B4DB2
triadic
#4D52B2 #B24D52 #52B24D
tetradic
#4D52B2 #B24D84 #B2AD4D #4DB27B
square
#4D52B2 #B24D84 #B2AD4D #4DB27B
split-complementary
#4D52B2 #B27B4D #84B24D
monochromatic
#282B5D #3B3E87 #4D52B2 #787CC4 #A2A5D7

Accessibility & contrast

On white

6.63
#4D52B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#4D52B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D52B2
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D52B2#FFFFFF#000000##FFFFFF
##4D52B21.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1861B5
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#14687A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4d52b2;
/* rgb */ color: rgb(77, 82, 178);
/* oklch */ color: oklch(48.7% 0.150 277.0);
Tailwind
colors: {
  custom: {
    50: '#8782ca',
    500: '#4d52b2',
    950: '#000000',
  },
}
SCSS
$custom: #4d52b2;
$custom-light: #8782ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4d52b2",
  "rgb": {
    "r": 77,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 237.03,
    "s": 39.608,
    "l": 50
  },
  "oklch": {
    "l": 0.48702,
    "c": 0.14979,
    "h": 277
  },
  "luminance": 0.10827
}

Semantic roles & 50–950 ramp

primary
#4D52B2
secondary
#C4C297
accent
#CA58CF
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #4D52B2

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

Preview Lab → · Contrast checker → · Palette generator →

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