#4E45A8#4E45A8

#4E45A8 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.6% C 0.153 H 282.6°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#4E45A8
RGBrgb(78, 69, 168)
HSLhsl(245, 42%, 46%)
HSVhsv(245, 59%, 66%)
CMYKcmyk(53.6%, 58.9%, 0%, 34.1%)
CIE-LABlab(35.40, 31.58, -52.27)
CIE-LCHlch(35.40, 61.06, 301.14°)
OKLaboklab(45.61% 0.0334 -0.1497)
OKLCHoklch(45.61% 0.153 282.6)
XYZxyz(12.3357, 8.7024, 38.0679)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E45A8 #9FA845
analogous
#456EA8 #4E45A8 #8045A8
triadic
#4E45A8 #A84E45 #45A84E
tetradic
#4E45A8 #A8456E #9FA845 #45A880
square
#4E45A8 #A8456E #9FA845 #45A880
split-complementary
#4E45A8 #A88045 #6EA845
monochromatic
#262151 #3A337D #4E45A8 #7169C1 #9A94D3

Accessibility & contrast

On white

7.66
#4E45A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4E45A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E45A8
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E45A8#FFFFFF#000000##FFFFFF
##4E45A81.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#0050A6
Tritanopia (blue-blind)
#285C70
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e45a8;
/* rgb */ color: rgb(78, 69, 168);
/* oklch */ color: oklch(45.6% 0.153 282.6);
Tailwind
colors: {
  custom: {
    50: '#8779c3',
    500: '#4e45a8',
    950: '#000000',
  },
}
SCSS
$custom: #4e45a8;
$custom-light: #8779c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e45a8",
  "rgb": {
    "r": 78,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 245.455,
    "s": 41.772,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45611,
    "c": 0.15338,
    "h": 282.6
  },
  "luminance": 0.08703
}

Semantic roles & 50–950 ramp

primary
#4E45A8
secondary
#BABF8A
accent
#D256C6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #4E45A8

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

Preview Lab → · Contrast checker → · Palette generator →

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