#4E45A4#4E45A4

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

Color values

HEX#4E45A4
RGBrgb(78, 69, 164)
HSLhsl(246, 41%, 46%)
HSVhsv(246, 58%, 64%)
CMYKcmyk(52.4%, 57.9%, 0%, 35.7%)
CIE-LABlab(35.11, 30.30, -50.34)
CIE-LCHlch(35.11, 58.75, 301.04°)
OKLaboklab(45.3% 0.0334 -0.144)
OKLCHoklch(45.3% 0.148 283.1)
XYZxyz(11.9688, 8.5556, 36.1355)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E45A4 #9BA445
analogous
#456BA4 #4E45A4 #7D45A4
triadic
#4E45A4 #A44E45 #45A44E
tetradic
#4E45A4 #A4456B #9BA445 #45A47D
square
#4E45A4 #A4456B #9BA445 #45A47D
split-complementary
#4E45A4 #A47D45 #6BA445
monochromatic
#25214E #3A3379 #4E45A4 #6F67BF #9892D1

Accessibility & contrast

On white

7.75
#4E45A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E45A4
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E45A4#FFFFFF#000000##FFFFFF
##4E45A41.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A7
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#2C5B6D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e45a4;
/* rgb */ color: rgb(78, 69, 164);
/* oklch */ color: oklch(45.3% 0.148 283.1);
Tailwind
colors: {
  custom: {
    50: '#8779c0',
    500: '#4e45a4',
    950: '#000000',
  },
}
SCSS
$custom: #4e45a4;
$custom-light: #8779c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e45a4",
  "rgb": {
    "r": 78,
    "g": 69,
    "b": 164
  },
  "hsl": {
    "h": 245.684,
    "s": 40.773,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45304,
    "c": 0.14786,
    "h": 283.1
  },
  "luminance": 0.08556
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E45A4

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

Preview Lab → · Contrast checker → · Palette generator →

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