#4E45A2#4E45A2

#4E45A2 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.2% C 0.145 H 283.3°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#4E45A2
RGBrgb(78, 69, 162)
HSLhsl(246, 40%, 45%)
HSVhsv(246, 57%, 64%)
CMYKcmyk(51.9%, 57.4%, 0%, 36.5%)
CIE-LABlab(34.97, 29.66, -49.37)
CIE-LCHlch(34.97, 57.59, 300.99°)
OKLaboklab(45.15% 0.0334 -0.1412)
OKLCHoklch(45.15% 0.145 283.3)
XYZxyz(11.7896, 8.4839, 35.1918)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E45A2 #99A245
analogous
#456BA2 #4E45A2 #7C45A2
triadic
#4E45A2 #A24E45 #45A24E
tetradic
#4E45A2 #A2456B #99A245 #45A27C
square
#4E45A2 #A2456B #99A245 #45A27C
split-complementary
#4E45A2 #A27C45 #6BA245
monochromatic
#25204C #393377 #4E45A2 #6F66BE #9791D0

Accessibility & contrast

On white

7.79
#4E45A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#4E45A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E45A2
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E45A2#FFFFFF#000000##FFFFFF
##4E45A21.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0155A5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#2D5A6C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e45a2;
/* rgb */ color: rgb(78, 69, 162);
/* oklch */ color: oklch(45.2% 0.145 283.3);
Tailwind
colors: {
  custom: {
    50: '#8679be',
    500: '#4e45a2',
    950: '#000000',
  },
}
SCSS
$custom: #4e45a2;
$custom-light: #8679be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e45a2",
  "rgb": {
    "r": 78,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 245.806,
    "s": 40.26,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45153,
    "c": 0.14508,
    "h": 283.3
  },
  "luminance": 0.08485
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E45A2

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

Preview Lab → · Contrast checker → · Palette generator →

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