#4E45BA#4E45BA

#4E45BA is a mid, vivid blue. Relative luminance 0.094; OKLCH L 47.1% C 0.178 H 280.6°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#4E45BA
RGBrgb(78, 69, 186)
HSLhsl(245, 46%, 50%)
HSVhsv(245, 63%, 73%)
CMYKcmyk(58.1%, 62.9%, 0%, 27.1%)
CIE-LABlab(36.78, 37.37, -60.70)
CIE-LCHlch(36.78, 71.28, 301.62°)
OKLaboklab(47.05% 0.0325 -0.1745)
OKLCHoklch(47.05% 0.178 280.6)
XYZxyz(14.1302, 9.4202, 47.5185)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E45BA #B1BA45
analogous
#4577BA #4E45BA #8845BA
triadic
#4E45BA #BA4E45 #45BA4E
tetradic
#4E45BA #BA4577 #B1BA45 #45BA88
square
#4E45BA #BA4577 #B1BA45 #45BA88
split-complementary
#4E45BA #BA8845 #77BA45
monochromatic
#292461 #3B348D #4E45BA #7872CB #A39EDB

Accessibility & contrast

On white

7.28
#4E45BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#4E45BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E45BA
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E45BA#FFFFFF#000000##FFFFFF
##4E45BA1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#0B6279
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4e45ba;
/* rgb */ color: rgb(78, 69, 186);
/* oklch */ color: oklch(47.1% 0.178 280.6);
Tailwind
colors: {
  custom: {
    50: '#8a79d0',
    500: '#4e45ba',
    950: '#000000',
  },
}
SCSS
$custom: #4e45ba;
$custom-light: #8a79d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e45ba",
  "rgb": {
    "r": 78,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 244.615,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.47054,
    "c": 0.17752,
    "h": 280.6
  },
  "luminance": 0.09421
}

Semantic roles & 50–950 ramp

primary
#4E45BA
secondary
#C4C893
accent
#D652CB
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #4E45BA

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

Preview Lab → · Contrast checker → · Palette generator →

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