#4E40A7#4E40A7

#4E40A7 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.7% C 0.159 H 284.1°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#4E40A7
RGBrgb(78, 64, 167)
HSLhsl(248, 45%, 45%)
HSVhsv(248, 62%, 65%)
CMYKcmyk(53.3%, 61.7%, 0%, 34.5%)
CIE-LABlab(34.14, 34.35, -53.72)
CIE-LCHlch(34.14, 63.76, 302.60°)
OKLaboklab(44.66% 0.0387 -0.154)
OKLCHoklch(44.66% 0.159 284.1)
XYZxyz(11.9482, 8.0759, 37.4809)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40A7 #99A740
analogous
#4066A7 #4E40A7 #8140A7
triadic
#4E40A7 #A74E40 #40A74E
tetradic
#4E40A7 #A74066 #99A740 #40A781
square
#4E40A7 #A74066 #99A740 #40A781
split-complementary
#4E40A7 #A78140 #66A740
monochromatic
#251E4F #392F7B #4E40A7 #6F62C3 #978ED4

Accessibility & contrast

On white

8.03
#4E40A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#4E40A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40A7
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40A7#FFFFFF#000000##FFFFFF
##4E40A71.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AA
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#29596D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4e40a7;
/* rgb */ color: rgb(78, 64, 167);
/* oklch */ color: oklch(44.7% 0.159 284.1);
Tailwind
colors: {
  custom: {
    50: '#8775c2',
    500: '#4e40a7',
    950: '#000000',
  },
}
SCSS
$custom: #4e40a7;
$custom-light: #8775c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40a7",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 248.155,
    "s": 44.589,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44658,
    "c": 0.15879,
    "h": 284.1
  },
  "luminance": 0.08077
}

Semantic roles & 50–950 ramp

primary
#4E40A7
secondary
#B7BF84
accent
#D454C3
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E40A7

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

Preview Lab → · Contrast checker → · Palette generator →

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