#4E46A5#4E46A5

#4E46A5 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.6% C 0.148 H 282.6°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#4E46A5
RGBrgb(78, 70, 165)
HSLhsl(245, 40%, 46%)
HSVhsv(245, 58%, 65%)
CMYKcmyk(52.7%, 57.6%, 0%, 35.3%)
CIE-LABlab(35.43, 29.99, -50.43)
CIE-LCHlch(35.43, 58.67, 300.74°)
OKLaboklab(45.56% 0.0323 -0.1443)
OKLCHoklch(45.56% 0.148 282.6)
XYZxyz(12.1215, 8.7160, 36.6336)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E46A5 #9DA546
analogous
#466DA5 #4E46A5 #7D46A5
triadic
#4E46A5 #A54E46 #46A54E
tetradic
#4E46A5 #A5466D #9DA546 #46A57D
square
#4E46A5 #A5466D #9DA546 #46A57D
split-complementary
#4E46A5 #A57D46 #6DA546
monochromatic
#25224F #3A347A #4E46A5 #7069BF #9994D2

Accessibility & contrast

On white

7.65
#4E46A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4E46A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E46A5
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E46A5#FFFFFF#000000##FFFFFF
##4E46A51.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A8
Deuteranopia (green-blind)
#0050A3
Tritanopia (blue-blind)
#2B5C6E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e46a5;
/* rgb */ color: rgb(78, 70, 165);
/* oklch */ color: oklch(45.6% 0.148 282.6);
Tailwind
colors: {
  custom: {
    50: '#8779c0',
    500: '#4e46a5',
    950: '#000000',
  },
}
SCSS
$custom: #4e46a5;
$custom-light: #8779c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e46a5",
  "rgb": {
    "r": 78,
    "g": 70,
    "b": 165
  },
  "hsl": {
    "h": 245.053,
    "s": 40.426,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45562,
    "c": 0.14786,
    "h": 282.6
  },
  "luminance": 0.08717
}

Semantic roles & 50–950 ramp

primary
#4E46A5
secondary
#B9BD89
accent
#D058C6
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #4E46A5

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

Preview Lab → · Contrast checker → · Palette generator →

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