#4E40AB#4E40AB

#4E40AB is a dark, vivid blue. Relative luminance 0.082; OKLCH L 45.0% C 0.164 H 283.6°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#4E40AB
RGBrgb(78, 64, 171)
HSLhsl(248, 46%, 46%)
HSVhsv(248, 63%, 67%)
CMYKcmyk(54.4%, 62.6%, 0%, 32.9%)
CIE-LABlab(34.45, 35.61, -55.61)
CIE-LCHlch(34.45, 66.04, 302.64°)
OKLaboklab(44.98% 0.0385 -0.1596)
OKLCHoklch(44.98% 0.164 283.6)
XYZxyz(12.3237, 8.2261, 39.4586)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40AB #9DAB40
analogous
#4067AB #4E40AB #8340AB
triadic
#4E40AB #AB4E40 #40AB4E
tetradic
#4E40AB #AB4067 #9DAB40 #40AB83
square
#4E40AB #AB4067 #9DAB40 #40AB83
split-complementary
#4E40AB #AB8340 #67AB40
monochromatic
#251F52 #3A2F7E #4E40AB #7063C5 #9990D5

Accessibility & contrast

On white

7.94
#4E40AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4E40AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40AB
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40AB#FFFFFF#000000##FFFFFF
##4E40AB1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#255A6F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4e40ab;
/* rgb */ color: rgb(78, 64, 171);
/* oklch */ color: oklch(45.0% 0.164 283.6);
Tailwind
colors: {
  custom: {
    50: '#8875c5',
    500: '#4e40ab',
    950: '#000000',
  },
}
SCSS
$custom: #4e40ab;
$custom-light: #8875c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40ab",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 247.85,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44981,
    "c": 0.16413,
    "h": 283.6
  },
  "luminance": 0.08227
}

Semantic roles & 50–950 ramp

primary
#4E40AB
secondary
#B9C186
accent
#D553C4
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4E40AB

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

Preview Lab → · Contrast checker → · Palette generator →

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