#4E40AA#4E40AA

#4E40AA is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.9% C 0.163 H 283.7°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#4E40AA
RGBrgb(78, 64, 170)
HSLhsl(248, 45%, 46%)
HSVhsv(248, 62%, 67%)
CMYKcmyk(54.1%, 62.4%, 0%, 33.3%)
CIE-LABlab(34.37, 35.30, -55.14)
CIE-LCHlch(34.37, 65.47, 302.63°)
OKLaboklab(44.9% 0.0385 -0.1582)
OKLCHoklch(44.9% 0.163 283.7)
XYZxyz(12.2288, 8.1881, 38.9585)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40AA #9CAA40
analogous
#4067AA #4E40AA #8340AA
triadic
#4E40AA #AA4E40 #40AA4E
tetradic
#4E40AA #AA4067 #9CAA40 #40AA83
square
#4E40AA #AA4067 #9CAA40 #40AA83
split-complementary
#4E40AA #AA8340 #67AA40
monochromatic
#251F51 #3A2F7E #4E40AA #7063C4 #998FD5

Accessibility & contrast

On white

7.96
#4E40AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4E40AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40AA
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40AA#FFFFFF#000000##FFFFFF
##4E40AA1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AD
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#275A6F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4e40aa;
/* rgb */ color: rgb(78, 64, 170);
/* oklch */ color: oklch(44.9% 0.163 283.7);
Tailwind
colors: {
  custom: {
    50: '#8875c4',
    500: '#4e40aa',
    950: '#000000',
  },
}
SCSS
$custom: #4e40aa;
$custom-light: #8875c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40aa",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 247.925,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.449,
    "c": 0.16281,
    "h": 283.7
  },
  "luminance": 0.08189
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E40AA

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

Preview Lab → · Contrast checker → · Palette generator →

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