#4D58D2#4D58D2

#4D58D2 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.3% C 0.186 H 274.1°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#4D58D2
RGBrgb(77, 88, 210)
HSLhsl(235, 60%, 56%)
HSVhsv(235, 63%, 82%)
CMYKcmyk(63.3%, 58.1%, 0%, 17.6%)
CIE-LABlab(43.08, 33.44, -64.41)
CIE-LCHlch(43.08, 72.57, 297.44°)
OKLaboklab(52.25% 0.0134 -0.1853)
OKLCHoklch(52.25% 0.186 274.1)
XYZxyz(18.1793, 13.2088, 62.5518)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D58D2 #D2C74D
analogous
#4D9BD2 #4D58D2 #854DD2
triadic
#4D58D2 #D24D58 #58D24D
tetradic
#4D58D2 #D24D9B #D2C74D #4DD285
square
#4D58D2 #D24D9B #D2C74D #4DD285
split-complementary
#4D58D2 #D2854D #9BD24D
monochromatic
#212983 #2E39B4 #4D58D2 #7E86DE #AFB4EB

Accessibility & contrast

On white

5.77
#4D58D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#4D58D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D58D2
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D58D2#FFFFFF#000000##FFFFFF
##4D58D21.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#0060D0
Tritanopia (blue-blind)
#00768C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4d58d2;
/* rgb */ color: rgb(77, 88, 210);
/* oklch */ color: oklch(52.3% 0.186 274.1);
Tailwind
colors: {
  custom: {
    50: '#8c87e1',
    500: '#4d58d2',
    950: '#000000',
  },
}
SCSS
$custom: #4d58d2;
$custom-light: #8c87e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d58d2",
  "rgb": {
    "r": 77,
    "g": 88,
    "b": 210
  },
  "hsl": {
    "h": 235.038,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.52252,
    "c": 0.18577,
    "h": 274.1
  },
  "luminance": 0.1321
}

Semantic roles & 50–950 ramp

primary
#4D58D2
secondary
#D9D4A2
accent
#D645E3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #4D58D2

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

Preview Lab → · Contrast checker → · Palette generator →

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