#4D59D5#4D59D5

#4D59D5 is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.7% C 0.189 H 273.8°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#4D59D5
RGBrgb(77, 89, 213)
HSLhsl(235, 62%, 57%)
HSVhsv(235, 64%, 84%)
CMYKcmyk(63.8%, 58.2%, 0%, 16.5%)
CIE-LABlab(43.54, 33.84, -65.36)
CIE-LCHlch(43.54, 73.60, 297.37°)
OKLaboklab(52.67% 0.0125 -0.1881)
OKLCHoklch(52.67% 0.189 273.8)
XYZxyz(18.6392, 13.5250, 64.5662)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D59D5 #D5C94D
analogous
#4D9DD5 #4D59D5 #854DD5
triadic
#4D59D5 #D54D59 #59D54D
tetradic
#4D59D5 #D54D9D #D5C94D #4DD585
square
#4D59D5 #D54D9D #D5C94D #4DD585
split-complementary
#4D59D5 #D5854D #9DD54D
monochromatic
#202988 #2C38B9 #4D59D5 #7F87E1 #B0B5EC

Accessibility & contrast

On white

5.67
#4D59D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#4D59D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D59D5
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D59D5#FFFFFF#000000##FFFFFF
##4D59D51.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD9
Deuteranopia (green-blind)
#0061D3
Tritanopia (blue-blind)
#00778E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4d59d5;
/* rgb */ color: rgb(77, 89, 213);
/* oklch */ color: oklch(52.7% 0.189 273.8);
Tailwind
colors: {
  custom: {
    50: '#8d87e3',
    500: '#4d59d5',
    950: '#000000',
  },
}
SCSS
$custom: #4d59d5;
$custom-light: #8d87e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d59d5",
  "rgb": {
    "r": 77,
    "g": 89,
    "b": 213
  },
  "hsl": {
    "h": 234.706,
    "s": 61.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52669,
    "c": 0.18851,
    "h": 273.8
  },
  "luminance": 0.13527
}

Semantic roles & 50–950 ramp

primary
#4D59D5
secondary
#DBD6A3
accent
#D743E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0D0B15
muted
#7E7C84

Preview Lab

Preview with #4D59D5

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

Preview Lab → · Contrast checker → · Palette generator →

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