#4D64B9#4D64B9

#4D64B9 is a mid, vivid blue. Relative luminance 0.142; OKLCH L 52.8% C 0.136 H 269.9°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#4D64B9
RGBrgb(77, 100, 185)
HSLhsl(227, 44%, 51%)
HSVhsv(227, 58%, 73%)
CMYKcmyk(58.4%, 45.9%, 0%, 27.5%)
CIE-LABlab(44.51, 17.38, -47.64)
CIE-LCHlch(44.51, 50.71, 290.05°)
OKLaboklab(52.8% -0.0003 -0.1358)
OKLCHoklch(52.8% 0.136 269.9)
XYZxyz(16.3718, 14.1936, 47.7664)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D64B9 #B9A24D
analogous
#4D9AB9 #4D64B9 #6C4DB9
triadic
#4D64B9 #B94D64 #64B94D
tetradic
#4D64B9 #B94D9A #B9A24D #4DB96C
square
#4D64B9 #B94D9A #B9A24D #4DB96C
split-complementary
#4D64B9 #B96C4D #9AB94D
monochromatic
#273464 #394B90 #4D64B9 #798ACA #A5B1DC

Accessibility & contrast

On white

5.47
#4D64B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#4D64B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D64B9
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D64B9#FFFFFF#000000##FFFFFF
##4D64B91.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6EBC
Deuteranopia (green-blind)
#2D65B7
Tritanopia (blue-blind)
#007785
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4d64b9;
/* rgb */ color: rgb(77, 100, 185);
/* oklch */ color: oklch(52.8% 0.136 269.9);
Tailwind
colors: {
  custom: {
    50: '#888fce',
    500: '#4d64b9',
    950: '#000000',
  },
}
SCSS
$custom: #4d64b9;
$custom-light: #888fce;
$custom-dark: #000000;
JSON
{
  "hex": "#4d64b9",
  "rgb": {
    "r": 77,
    "g": 100,
    "b": 185
  },
  "hsl": {
    "h": 227.222,
    "s": 43.548,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52797,
    "c": 0.13585,
    "h": 269.9
  },
  "luminance": 0.14195
}

Semantic roles & 50–950 ramp

primary
#4D64B9
secondary
#C9BF99
accent
#B855D3
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C14
muted
#7D7D82

Preview Lab

Preview with #4D64B9

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

Preview Lab → · Contrast checker → · Palette generator →

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