#4D4EA2#4D4EA2

#4D4EA2 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.8% C 0.133 H 279.5°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#4D4EA2
RGBrgb(77, 78, 162)
HSLhsl(239, 36%, 47%)
HSVhsv(239, 52%, 64%)
CMYKcmyk(52.5%, 51.9%, 0%, 36.5%)
CIE-LABlab(37.18, 23.72, -45.82)
CIE-LCHlch(37.18, 51.60, 297.37°)
OKLaboklab(46.78% 0.0218 -0.1307)
OKLCHoklch(46.78% 0.133 279.5)
XYZxyz(12.3045, 9.6345, 35.3867)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D4EA2 #A2A14D
analogous
#4D79A2 #4D4EA2 #774DA2
triadic
#4D4EA2 #A24D4E #4EA24D
tetradic
#4D4EA2 #A24D79 #A2A14D #4DA277
square
#4D4EA2 #A24D79 #A2A14D #4DA277
split-complementary
#4D4EA2 #A2774D #79A24D
monochromatic
#26264F #393A79 #4D4EA2 #7172BB #9A9BCF

Accessibility & contrast

On white

7.17
#4D4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#4D4EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D4EA2
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D4EA2#FFFFFF#000000##FFFFFF
##4D4EA21.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245BA5
Deuteranopia (green-blind)
#1A54A0
Tritanopia (blue-blind)
#2A6170
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4d4ea2;
/* rgb */ color: rgb(77, 78, 162);
/* oklch */ color: oklch(46.8% 0.133 279.5);
Tailwind
colors: {
  custom: {
    50: '#857fbe',
    500: '#4d4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #4d4ea2;
$custom-light: #857fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4d4ea2",
  "rgb": {
    "r": 77,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 239.294,
    "s": 35.565,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46779,
    "c": 0.13251,
    "h": 279.5
  },
  "luminance": 0.09635
}

Semantic roles & 50–950 ramp

primary
#4D4EA2
secondary
#BCBB8F
accent
#CA5CCC
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #4D4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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