#4E46A6#4E46A6

#4E46A6 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.6% C 0.149 H 282.5°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#4E46A6
RGBrgb(78, 70, 166)
HSLhsl(245, 41%, 46%)
HSVhsv(245, 58%, 65%)
CMYKcmyk(53%, 57.8%, 0%, 34.9%)
CIE-LABlab(35.50, 30.31, -50.91)
CIE-LCHlch(35.50, 59.25, 300.77°)
OKLaboklab(45.64% 0.0323 -0.1457)
OKLCHoklch(45.64% 0.149 282.5)
XYZxyz(12.2129, 8.7525, 37.1149)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E46A6 #9EA646
analogous
#466EA6 #4E46A6 #7E46A6
triadic
#4E46A6 #A64E46 #46A64E
tetradic
#4E46A6 #A6466E #9EA646 #46A67E
square
#4E46A6 #A6466E #9EA646 #46A67E
split-complementary
#4E46A6 #A67E46 #6EA646
monochromatic
#262250 #3A347B #4E46A6 #7169C0 #9A94D2

Accessibility & contrast

On white

7.63
#4E46A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#4E46A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E46A6
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E46A6#FFFFFF#000000##FFFFFF
##4E46A61.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A9
Deuteranopia (green-blind)
#0050A4
Tritanopia (blue-blind)
#2A5C6F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e46a6;
/* rgb */ color: rgb(78, 70, 166);
/* oklch */ color: oklch(45.6% 0.149 282.5);
Tailwind
colors: {
  custom: {
    50: '#877ac1',
    500: '#4e46a6',
    950: '#000000',
  },
}
SCSS
$custom: #4e46a6;
$custom-light: #877ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e46a6",
  "rgb": {
    "r": 78,
    "g": 70,
    "b": 166
  },
  "hsl": {
    "h": 245,
    "s": 40.678,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45638,
    "c": 0.14924,
    "h": 282.5
  },
  "luminance": 0.08753
}

Semantic roles & 50–950 ramp

primary
#4E46A6
secondary
#BABE8A
accent
#D157C6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #4E46A6

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

Preview Lab → · Contrast checker → · Palette generator →

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