#4E45A6#4E45A6

#4E45A6 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.5% C 0.151 H 282.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#4E45A6
RGBrgb(78, 69, 166)
HSLhsl(246, 41%, 46%)
HSVhsv(246, 58%, 65%)
CMYKcmyk(53%, 58.4%, 0%, 34.9%)
CIE-LABlab(35.26, 30.94, -51.31)
CIE-LCHlch(35.26, 59.91, 301.09°)
OKLaboklab(45.46% 0.0334 -0.1469)
OKLCHoklch(45.46% 0.151 282.8)
XYZxyz(12.1508, 8.6284, 37.0942)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E45A6 #9DA645
analogous
#456CA6 #4E45A6 #7E45A6
triadic
#4E45A6 #A64E45 #45A64E
tetradic
#4E45A6 #A6456C #9DA645 #45A67E
square
#4E45A6 #A6456C #9DA645 #45A67E
split-complementary
#4E45A6 #A67E45 #6CA645
monochromatic
#252150 #3A337B #4E45A6 #7068C0 #9993D2

Accessibility & contrast

On white

7.70
#4E45A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#4E45A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E45A6
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E45A6#FFFFFF#000000##FFFFFF
##4E45A61.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e45a6;
/* rgb */ color: rgb(78, 69, 166);
/* oklch */ color: oklch(45.5% 0.151 282.8);
Tailwind
colors: {
  custom: {
    50: '#8779c1',
    500: '#4e45a6',
    950: '#000000',
  },
}
SCSS
$custom: #4e45a6;
$custom-light: #8779c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e45a6",
  "rgb": {
    "r": 78,
    "g": 69,
    "b": 166
  },
  "hsl": {
    "h": 245.567,
    "s": 41.277,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45457,
    "c": 0.15063,
    "h": 282.8
  },
  "luminance": 0.08629
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E45A6

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

Preview Lab → · Contrast checker → · Palette generator →

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