#4E46A0#4E46A0

#4E46A0 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.2% C 0.141 H 283.2°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#4E46A0
RGBrgb(78, 70, 160)
HSLhsl(245, 39%, 45%)
HSVhsv(245, 56%, 63%)
CMYKcmyk(51.2%, 56.3%, 0%, 37.3%)
CIE-LABlab(35.08, 28.39, -48.00)
CIE-LCHlch(35.08, 55.76, 300.60°)
OKLaboklab(45.19% 0.0322 -0.1371)
OKLCHoklch(45.19% 0.141 283.2)
XYZxyz(11.6753, 8.5375, 34.2836)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E46A0 #98A046
analogous
#466BA0 #4E46A0 #7B46A0
triadic
#4E46A0 #A04E46 #46A04E
tetradic
#4E46A0 #A0466B #98A046 #46A07B
square
#4E46A0 #A0466B #98A046 #46A07B
split-complementary
#4E46A0 #A07B46 #6BA046
monochromatic
#24214B #393375 #4E46A0 #6E67BC #9791CF

Accessibility & contrast

On white

7.76
#4E46A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E46A0
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E46A0#FFFFFF#000000##FFFFFF
##4E46A01.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D55A3
Deuteranopia (green-blind)
#024F9E
Tritanopia (blue-blind)
#2F5A6C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e46a0;
/* rgb */ color: rgb(78, 70, 160);
/* oklch */ color: oklch(45.2% 0.141 283.2);
Tailwind
colors: {
  custom: {
    50: '#8679bd',
    500: '#4e46a0',
    950: '#000000',
  },
}
SCSS
$custom: #4e46a0;
$custom-light: #8679bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e46a0",
  "rgb": {
    "r": 78,
    "g": 70,
    "b": 160
  },
  "hsl": {
    "h": 245.333,
    "s": 39.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45187,
    "c": 0.14087,
    "h": 283.2
  },
  "luminance": 0.08538
}

Semantic roles & 50–950 ramp

primary
#4E46A0
secondary
#B6BB87
accent
#CF59C5
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #4E46A0

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

Preview Lab → · Contrast checker → · Palette generator →

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