#4D46E5#4D46E5

#4D46E5 is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 50.9% C 0.230 H 276.3°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#4D46E5
RGBrgb(77, 70, 229)
HSLhsl(243, 75%, 59%)
HSVhsv(243, 69%, 90%)
CMYKcmyk(66.4%, 69.4%, 0%, 10.2%)
CIE-LABlab(40.60, 50.39, -79.31)
CIE-LCHlch(40.60, 93.97, 302.43°)
OKLaboklab(50.92% 0.0255 -0.2291)
OKLCHoklch(50.92% 0.23 276.3)
XYZxyz(19.3890, 11.6135, 75.3334)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D46E5 #DEE546
analogous
#468EE5 #4D46E5 #9D46E5
triadic
#4D46E5 #E54D46 #46E54D
tetradic
#4D46E5 #E5468E #DEE546 #46E59D
square
#4D46E5 #E5468E #DEE546 #46E59D
split-complementary
#4D46E5 #E59D46 #8EE546
monochromatic
#1C169B #251DD0 #4D46E5 #817CED #B4B1F4

Accessibility & contrast

On white

6.32
#4D46E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#4D46E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D46E5
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D46E5#FFFFFF#000000##FFFFFF
##4D46E51.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EA
Deuteranopia (green-blind)
#0059E2
Tritanopia (blue-blind)
#007290
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4d46e5;
/* rgb */ color: rgb(77, 70, 229);
/* oklch */ color: oklch(50.9% 0.230 276.3);
Tailwind
colors: {
  custom: {
    50: '#917bee',
    500: '#4d46e5',
    950: '#000000',
  },
}
SCSS
$custom: #4d46e5;
$custom-light: #917bee;
$custom-dark: #000000;
JSON
{
  "hex": "#4d46e5",
  "rgb": {
    "r": 77,
    "g": 70,
    "b": 229
  },
  "hsl": {
    "h": 242.642,
    "s": 75.355,
    "l": 58.627
  },
  "oklch": {
    "l": 0.50924,
    "c": 0.23049,
    "h": 276.3
  },
  "luminance": 0.11615
}

Semantic roles & 50–950 ramp

primary
#4D46E5
secondary
#E0E3A4
accent
#F236EA
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0917
muted
#7E7B85

Preview Lab

Preview with #4D46E5

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

Preview Lab → · Contrast checker → · Palette generator →

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