#4E40AF#4E40AF

#4E40AF is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.3% C 0.169 H 283.0°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#4E40AF
RGBrgb(78, 64, 175)
HSLhsl(248, 46%, 47%)
HSVhsv(248, 63%, 69%)
CMYKcmyk(55.4%, 63.4%, 0%, 31.4%)
CIE-LABlab(34.76, 36.88, -57.48)
CIE-LCHlch(34.76, 68.30, 302.69°)
OKLaboklab(45.31% 0.0382 -0.1651)
OKLCHoklch(45.31% 0.169 283)
XYZxyz(12.7108, 8.3809, 41.4970)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40AF #A1AF40
analogous
#4069AF #4E40AF #8640AF
triadic
#4E40AF #AF4E40 #40AF4E
tetradic
#4E40AF #AF4069 #A1AF40 #40AF86
square
#4E40AF #AF4069 #A1AF40 #40AF86
split-complementary
#4E40AF #AF8640 #69AF40
monochromatic
#261F55 #3A3082 #4E40AF #7265C7 #9B92D7

Accessibility & contrast

On white

7.85
#4E40AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E40AF
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40AF#FFFFFF#000000##FFFFFF
##4E40AF1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#215B71
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e40af;
/* rgb */ color: rgb(78, 64, 175);
/* oklch */ color: oklch(45.3% 0.169 283.0);
Tailwind
colors: {
  custom: {
    50: '#8976c8',
    500: '#4e40af',
    950: '#000000',
  },
}
SCSS
$custom: #4e40af;
$custom-light: #8976c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40af",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 247.568,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45309,
    "c": 0.16942,
    "h": 283
  },
  "luminance": 0.08382
}

Semantic roles & 50–950 ramp

primary
#4E40AF
secondary
#BBC388
accent
#D652C5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4E40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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