#4E45A1#4E45A1

#4E45A1 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.1% C 0.144 H 283.4°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#4E45A1
RGBrgb(78, 69, 161)
HSLhsl(246, 40%, 45%)
HSVhsv(246, 57%, 63%)
CMYKcmyk(51.6%, 57.1%, 0%, 36.9%)
CIE-LABlab(34.90, 29.34, -48.89)
CIE-LCHlch(34.90, 57.01, 300.97°)
OKLaboklab(45.08% 0.0334 -0.1398)
OKLCHoklch(45.08% 0.144 283.4)
XYZxyz(11.7011, 8.4485, 34.7255)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E45A1 #98A145
analogous
#456AA1 #4E45A1 #7C45A1
triadic
#4E45A1 #A14E45 #45A14E
tetradic
#4E45A1 #A1456A #98A145 #45A17C
square
#4E45A1 #A1456A #98A145 #45A17C
split-complementary
#4E45A1 #A17C45 #6AA145
monochromatic
#24204B #393376 #4E45A1 #6E66BD #9791D0

Accessibility & contrast

On white

7.81
#4E45A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#4E45A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E45A1
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E45A1#FFFFFF#000000##FFFFFF
##4E45A11.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0455A4
Deuteranopia (green-blind)
#004F9F
Tritanopia (blue-blind)
#2E5A6C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e45a1;
/* rgb */ color: rgb(78, 69, 161);
/* oklch */ color: oklch(45.1% 0.144 283.4);
Tailwind
colors: {
  custom: {
    50: '#8679bd',
    500: '#4e45a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e45a1;
$custom-light: #8679bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e45a1",
  "rgb": {
    "r": 78,
    "g": 69,
    "b": 161
  },
  "hsl": {
    "h": 245.87,
    "s": 40,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45078,
    "c": 0.14369,
    "h": 283.4
  },
  "luminance": 0.08449
}

Semantic roles & 50–950 ramp

primary
#4E45A1
secondary
#B6BB87
accent
#D058C4
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #4E45A1

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

Preview Lab → · Contrast checker → · Palette generator →

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