#4E45A5#4E45A5

#4E45A5 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.4% C 0.149 H 282.9°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#4E45A5
RGBrgb(78, 69, 165)
HSLhsl(246, 41%, 46%)
HSVhsv(246, 58%, 65%)
CMYKcmyk(52.7%, 58.2%, 0%, 35.3%)
CIE-LABlab(35.19, 30.62, -50.82)
CIE-LCHlch(35.19, 59.33, 301.06°)
OKLaboklab(45.38% 0.0334 -0.1455)
OKLCHoklch(45.38% 0.149 282.9)
XYZxyz(12.0595, 8.5919, 36.6130)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E45A5 #9CA545
analogous
#456CA5 #4E45A5 #7E45A5
triadic
#4E45A5 #A54E45 #45A54E
tetradic
#4E45A5 #A5456C #9CA545 #45A57E
square
#4E45A5 #A5456C #9CA545 #45A57E
split-complementary
#4E45A5 #A57E45 #6CA545
monochromatic
#25214F #3A337A #4E45A5 #7068C0 #9993D2

Accessibility & contrast

On white

7.72
#4E45A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4E45A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E45A5
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E45A5#FFFFFF#000000##FFFFFF
##4E45A51.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A8
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#2B5B6E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e45a5;
/* rgb */ color: rgb(78, 69, 165);
/* oklch */ color: oklch(45.4% 0.149 282.9);
Tailwind
colors: {
  custom: {
    50: '#8779c0',
    500: '#4e45a5',
    950: '#000000',
  },
}
SCSS
$custom: #4e45a5;
$custom-light: #8779c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e45a5",
  "rgb": {
    "r": 78,
    "g": 69,
    "b": 165
  },
  "hsl": {
    "h": 245.625,
    "s": 41.026,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4538,
    "c": 0.14925,
    "h": 282.9
  },
  "luminance": 0.08593
}

Semantic roles & 50–950 ramp

primary
#4E45A5
secondary
#B8BD88
accent
#D157C5
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #4E45A5

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

Preview Lab → · Contrast checker → · Palette generator →

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