#4E46A1#4E46A1

#4E46A1 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.3% C 0.142 H 283.1°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#4E46A1
RGBrgb(78, 70, 161)
HSLhsl(245, 39%, 45%)
HSVhsv(245, 57%, 63%)
CMYKcmyk(51.6%, 56.5%, 0%, 36.9%)
CIE-LABlab(35.15, 28.71, -48.49)
CIE-LCHlch(35.15, 56.35, 300.63°)
OKLaboklab(45.26% 0.0322 -0.1386)
OKLCHoklch(45.26% 0.142 283.1)
XYZxyz(11.7631, 8.5726, 34.7462)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E46A1 #99A146
analogous
#466BA1 #4E46A1 #7C46A1
triadic
#4E46A1 #A14E46 #46A14E
tetradic
#4E46A1 #A1466B #99A146 #46A17C
square
#4E46A1 #A1466B #99A146 #46A17C
split-complementary
#4E46A1 #A17C46 #6BA146
monochromatic
#25214C #393376 #4E46A1 #6F67BD #9792D0

Accessibility & contrast

On white

7.74
#4E46A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#4E46A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E46A1
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E46A1#FFFFFF#000000##FFFFFF
##4E46A11.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A56A4
Deuteranopia (green-blind)
#00509F
Tritanopia (blue-blind)
#2E5B6C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e46a1;
/* rgb */ color: rgb(78, 70, 161);
/* oklch */ color: oklch(45.3% 0.142 283.1);
Tailwind
colors: {
  custom: {
    50: '#8679bd',
    500: '#4e46a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e46a1;
$custom-light: #8679bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e46a1",
  "rgb": {
    "r": 78,
    "g": 70,
    "b": 161
  },
  "hsl": {
    "h": 245.275,
    "s": 39.394,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45262,
    "c": 0.14228,
    "h": 283.1
  },
  "luminance": 0.08573
}

Semantic roles & 50–950 ramp

primary
#4E46A1
secondary
#B7BB88
accent
#CF59C5
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #4E46A1

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

Preview Lab → · Contrast checker → · Palette generator →

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