#4D58D5#4D58D5

#4D58D5 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.5% C 0.190 H 274.0°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#4D58D5
RGBrgb(77, 88, 213)
HSLhsl(235, 62%, 57%)
HSVhsv(235, 64%, 84%)
CMYKcmyk(63.8%, 58.7%, 0%, 16.5%)
CIE-LABlab(43.30, 34.46, -65.76)
CIE-LCHlch(43.30, 74.24, 297.65°)
OKLaboklab(52.49% 0.0133 -0.1893)
OKLCHoklch(52.49% 0.19 274)
XYZxyz(18.5566, 13.3597, 64.5387)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D58D5 #D5CA4D
analogous
#4D9CD5 #4D58D5 #864DD5
triadic
#4D58D5 #D54D58 #58D54D
tetradic
#4D58D5 #D54D9C #D5CA4D #4DD586
square
#4D58D5 #D54D9C #D5CA4D #4DD586
split-complementary
#4D58D5 #D5864D #9CD54D
monochromatic
#202888 #2C37B9 #4D58D5 #7F86E1 #B0B5EC

Accessibility & contrast

On white

5.72
#4D58D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#4D58D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D58D5
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D58D5#FFFFFF#000000##FFFFFF
##4D58D51.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD9
Deuteranopia (green-blind)
#0060D3
Tritanopia (blue-blind)
#00778E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4d58d5;
/* rgb */ color: rgb(77, 88, 213);
/* oklch */ color: oklch(52.5% 0.190 274.0);
Tailwind
colors: {
  custom: {
    50: '#8d87e3',
    500: '#4d58d5',
    950: '#000000',
  },
}
SCSS
$custom: #4d58d5;
$custom-light: #8d87e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d58d5",
  "rgb": {
    "r": 77,
    "g": 88,
    "b": 213
  },
  "hsl": {
    "h": 235.147,
    "s": 61.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52488,
    "c": 0.18974,
    "h": 274
  },
  "luminance": 0.13361
}

Semantic roles & 50–950 ramp

primary
#4D58D5
secondary
#DBD6A3
accent
#D843E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #4D58D5

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

Preview Lab → · Contrast checker → · Palette generator →

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