#4E45B2#4E45B2

#4E45B2 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.4% C 0.167 H 281.4°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#4E45B2
RGBrgb(78, 69, 178)
HSLhsl(245, 44%, 48%)
HSVhsv(245, 61%, 70%)
CMYKcmyk(56.2%, 61.2%, 0%, 30.2%)
CIE-LABlab(36.16, 34.79, -57.00)
CIE-LCHlch(36.16, 66.78, 301.40°)
OKLaboklab(46.4% 0.033 -0.1636)
OKLCHoklch(46.4% 0.167 281.4)
XYZxyz(13.3034, 9.0895, 43.1643)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E45B2 #A9B245
analogous
#4572B2 #4E45B2 #8445B2
triadic
#4E45B2 #B24E45 #45B24E
tetradic
#4E45B2 #B24572 #A9B245 #45B284
square
#4E45B2 #B24572 #A9B245 #45B284
split-complementary
#4E45B2 #B28445 #72B245
monochromatic
#27235A #3B3486 #4E45B2 #756EC7 #9F9AD8

Accessibility & contrast

On white

7.45
#4E45B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#4E45B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E45B2
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E45B2#FFFFFF#000000##FFFFFF
##4E45B21.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#1C5F75
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4e45b2;
/* rgb */ color: rgb(78, 69, 178);
/* oklch */ color: oklch(46.4% 0.167 281.4);
Tailwind
colors: {
  custom: {
    50: '#8979ca',
    500: '#4e45b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e45b2;
$custom-light: #8979ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e45b2",
  "rgb": {
    "r": 78,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 244.954,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46401,
    "c": 0.16692,
    "h": 281.4
  },
  "luminance": 0.0909
}

Semantic roles & 50–950 ramp

primary
#4E45B2
secondary
#BFC48F
accent
#D454C9
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #4E45B2

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

Preview Lab → · Contrast checker → · Palette generator →

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