#4E45A0#4E45A0

#4E45A0 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.0% C 0.142 H 283.6°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#4E45A0
RGBrgb(78, 69, 160)
HSLhsl(246, 40%, 45%)
HSVhsv(246, 57%, 63%)
CMYKcmyk(51.2%, 56.9%, 0%, 37.3%)
CIE-LABlab(34.83, 29.02, -48.40)
CIE-LCHlch(34.83, 56.43, 300.94°)
OKLaboklab(45% 0.0334 -0.1383)
OKLCHoklch(45% 0.142 283.6)
XYZxyz(11.6133, 8.4134, 34.2629)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E45A0 #97A045
analogous
#456AA0 #4E45A0 #7C45A0
triadic
#4E45A0 #A04E45 #45A04E
tetradic
#4E45A0 #A0456A #97A045 #45A07C
square
#4E45A0 #A0456A #97A045 #45A07C
split-complementary
#4E45A0 #A07C45 #6AA045
monochromatic
#24204A #393375 #4E45A0 #6E65BD #9690CF

Accessibility & contrast

On white

7.83
#4E45A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4E45A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E45A0
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E45A0#FFFFFF#000000##FFFFFF
##4E45A01.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0755A3
Deuteranopia (green-blind)
#004F9E
Tritanopia (blue-blind)
#2F5A6B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e45a0;
/* rgb */ color: rgb(78, 69, 160);
/* oklch */ color: oklch(45.0% 0.142 283.6);
Tailwind
colors: {
  custom: {
    50: '#8679bd',
    500: '#4e45a0',
    950: '#000000',
  },
}
SCSS
$custom: #4e45a0;
$custom-light: #8679bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e45a0",
  "rgb": {
    "r": 78,
    "g": 69,
    "b": 160
  },
  "hsl": {
    "h": 245.934,
    "s": 39.738,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45003,
    "c": 0.1423,
    "h": 283.6
  },
  "luminance": 0.08414
}

Semantic roles & 50–950 ramp

primary
#4E45A0
secondary
#B6BB86
accent
#D058C4
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #4E45A0

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

Preview Lab → · Contrast checker → · Palette generator →

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