#4E40A9#4E40A9

#4E40A9 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.8% C 0.161 H 283.8°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#4E40A9
RGBrgb(78, 64, 169)
HSLhsl(248, 45%, 46%)
HSVhsv(248, 62%, 66%)
CMYKcmyk(53.8%, 62.1%, 0%, 33.7%)
CIE-LABlab(34.29, 34.98, -54.67)
CIE-LCHlch(34.29, 64.90, 302.62°)
OKLaboklab(44.82% 0.0386 -0.1568)
OKLCHoklch(44.82% 0.161 283.8)
XYZxyz(12.1345, 8.1504, 38.4622)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40A9 #9BA940
analogous
#4066A9 #4E40A9 #8240A9
triadic
#4E40A9 #A94E40 #40A94E
tetradic
#4E40A9 #A94066 #9BA940 #40A982
square
#4E40A9 #A94066 #9BA940 #40A982
split-complementary
#4E40A9 #A98240 #66A940
monochromatic
#251E50 #3A2F7D #4E40A9 #6F62C4 #988FD5

Accessibility & contrast

On white

7.98
#4E40A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4E40A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40A9
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40A9#FFFFFF#000000##FFFFFF
##4E40A91.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AC
Deuteranopia (green-blind)
#004DA7
Tritanopia (blue-blind)
#28596E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4e40a9;
/* rgb */ color: rgb(78, 64, 169);
/* oklch */ color: oklch(44.8% 0.161 283.8);
Tailwind
colors: {
  custom: {
    50: '#8875c3',
    500: '#4e40a9',
    950: '#000000',
  },
}
SCSS
$custom: #4e40a9;
$custom-light: #8875c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40a9",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 248,
    "s": 45.064,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44819,
    "c": 0.16147,
    "h": 283.8
  },
  "luminance": 0.08151
}

Semantic roles & 50–950 ramp

primary
#4E40A9
secondary
#B8C085
accent
#D553C3
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4E40A9

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

Preview Lab → · Contrast checker → · Palette generator →

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